You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am experiencing high memory usage issues while using the npm package mmap-object for analyzing large files. The library takes too much memory, twice or for larger files even three or four times.
I have created a public GitHub repository where I have uploaded a test application to demonstrate the issue, available at https://github.com/monteiz/mmap-object-memory-issue. The text file used in the test application is ASCII encoded and should take only one byte for each character.
Here are the relevant logs produced by the test application:
As shown in the logs, the analyzed file size is 40 MiB, but the memory usage is much higher, with the RSS being 91 MiB.
Expected behavior
The mmap-object library should not use more memory than necessary when analyzing large files. It should be able to handle large files without requiring excessive amounts of memory.
Actual behavior
The mmap-object library is using significantly more memory than expected, with memory usage often two or three times the size of the analyzed file.
I believe this is a significant issue for anyone working with large files, and I hope it can be resolved soon.
The text was updated successfully, but these errors were encountered:
Thanks to @sehesuggestion I realised that my case could be treated more specifically.
I decided then to create a new package called shared-file-view. It's different from mmap-object. To begin it's readonly, while mmap-object has read/write capabilities.
Anyway, for the same file, my memory usage is now as follows:
Hello,
I am experiencing high memory usage issues while using the npm package mmap-object for analyzing large files. The library takes too much memory, twice or for larger files even three or four times.
I have created a public GitHub repository where I have uploaded a test application to demonstrate the issue, available at https://github.com/monteiz/mmap-object-memory-issue. The text file used in the test application is ASCII encoded and should take only one byte for each character.
Here are the relevant logs produced by the test application:
As shown in the logs, the analyzed file size is 40 MiB, but the memory usage is much higher, with the RSS being 91 MiB.
Expected behavior
The mmap-object library should not use more memory than necessary when analyzing large files. It should be able to handle large files without requiring excessive amounts of memory.
Actual behavior
The mmap-object library is using significantly more memory than expected, with memory usage often two or three times the size of the analyzed file.
I believe this is a significant issue for anyone working with large files, and I hope it can be resolved soon.
The text was updated successfully, but these errors were encountered: