We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
how do you think is it possible to optimize code:
file-queue/lib/maildir.js
Line 90 in 6f2bfa6
Maildir.prototype.listNew = function(callback) { this.fs.readdir(this.dirPaths[NEW], callback); };
the point is for each pop operation it reads all content of the directory.
pop
pop()->readdir() pop()->readdir() pop()->readdir()
In the sequence code
file-queue/queue.js
Line 76 in 6f2bfa6
tryPop
If the queue has size 1^e6 messages it .....
How about to optimize this place? For example
memoize
listNew()
The text was updated successfully, but these errors were encountered:
Add hijack for file-queue: threez/file-queue#6
a618159
Signed-off-by: Andrei Stepanov <astepano@redhat.com>
No branches or pull requests
Hello,
how do you think is it possible to optimize code:
file-queue/lib/maildir.js
Line 90 in 6f2bfa6
the point is for each
pop
operation it reads all content of the directory.pop()->readdir()
pop()->readdir()
pop()->readdir()
In the sequence code
file-queue/queue.js
Line 76 in 6f2bfa6
at
tryPop
you use only 1 item from the array.If the queue has size 1^e6 messages it .....
How about to optimize this place?
For example
memoize
or
listNew()
until it has elements?Thank you.
The text was updated successfully, but these errors were encountered: