Skip to content

Performance issue, blocking the main loop, using too much CPU #85

@emcodem

Description

@emcodem

The execution takes about 5 seconds, it spends nearly all the time in ConnectedDomain function from table-parser module.
ConnecteDomain function seems to be extremely CPU intense, so much that it even blocks my main loop for a few seconds.

Code:

var ps = require("ps-node") 
ps.lookup({ pid: 0 }, function(err, resultList ) {
	console.log(resultList)
});
     

There are about 400 processes in the returned list, so pretty small string to parse, i am sure it can be done in fractions of a milliseccond.
Please let me know if you need more info, the issue feels to be so general to me that i don't know what else to say than i am on windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions