Skip to content
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

Different performance after 2 launches #147

Open
jpofmars opened this issue Jan 22, 2020 · 1 comment
Open

Different performance after 2 launches #147

jpofmars opened this issue Jan 22, 2020 · 1 comment

Comments

@jpofmars
Copy link

Hello Everybody,

I use biogo to retrieve data from tabixed file for a VCF file. I use go routine and each routine use a preloaded index and a specific access to the tabixed file (for exemple 8 routines are used with GOMAXPROC=8).
All seem to work fine however when I launch the script, it take ~2 seconds for 1000 rows. (cpu < 100% during all the process) and when it done, If I relaunch it for the same file (same parameters) , it take ~300ms for 1000 rows (cpu > 700% during all the process).

I use the NewChunkReader function to retrieve data after get region with Chunks function.
When I load file I use bgzf.NewReader function with rd = 1

Is it normal to have this behaviour ?

thank you

@kortschak
Copy link
Member

This sounds like disk cache warmth to me. However, please take questions to https://groups.google.com/forum/#!forum/biogo-user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants