Serialization through util.inspect always occurs, regardless of debug setting #2

Open
opened 7 years ago by joepie91 · 0 comments
Owner

As reported here, util.inspect serialization occurs regardless of whether debugging is enabled, and this can cause memory usage issues with large objects.

The debugging logic needs to be changed to use a custom formatter instead, so that the serialization logic is only executed when debugging is enabled.

As reported [here](https://github.com/joepie91/node-promise-task-queue/pull/3#issuecomment-274944105), `util.inspect` serialization occurs regardless of whether debugging is enabled, and this can cause memory usage issues with large objects. The debugging logic needs to be changed to use a custom formatter instead, so that the serialization logic is only executed when debugging is enabled.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joepie91/node-promise-task-queue#2
Loading…
There is no content yet.