-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
speed up readIndex/readSpectrum by base::textConnection #70
Comments
That sounds very interesting! Having a text buffer that connects the C# with the R level would save a write and read operation. @cpanse I think you should really consider this solution! |
Yes, it is more elegant, and we used pipe in rawDiag. So far, it does not seem to improve the read performance on my Apple M1 (reading 10x a 2G raw file saved less than 0.5seconds). |
The readIndex function generates much smaller intermediate files compared to readSpectrum. The latter, readSpectrum, exhibits poorer performance, especially when used with non-SSD (Solid State Drive) disks. Based on my experience, |
We have already gone one step further, #44 , and tried to go directly via libmono-2.so (similar to what python projects, e.g., alphapept do). Concerning |
@cpanse: I don't share your assumption. We should also think about the people that have less resources and still depend on conventional hard disks! |
@asepsiswu: Pleas don't fell offended. @cpanse is afraid of package dependencies. 👻 I once had to remove code that was using a But, why don't we check if |
|
because why do you want to read all Astral spectra? solve #44 and that issue and many more are gone. |
@asepsiswu of note, |
@asepsiswu and if you set the parameter |
I need nosies info. The IO seems to have less impact. If possible, read data from C# interface to R is the best solution. |
A potential constraint lies in the data input/output speed of the disk.
one solution is to redirect the output of a command executed with system2 to a base::textConnection.
I hope the following code might provide some clues.
The text was updated successfully, but these errors were encountered: