-
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
Parsing zinc file is too slow #11
Comments
Can we define "too much time" and "simple zinc file"? Are we talking milliseconds, seconds, hours, days? Is the file 100 bytes, 100kB, 100MB? Also, which version of I'll admit I've done no real performance analysis on There was a re-write recently that replaced I tried numerous variations, but couldn't reliably get lists to parse correctly using I'm open to reviewing patches that address the performance issues on the proviso they don't break existing functionality. If performance is a consideration, I'd seriously consider using JSON for grid representation as that uses the standard |
Hi Stuart, thanks a lot for replying. |
Ahh okay, yeah, 3MB is huge. My testing has been with grids that are more like 3kB. :-) ZINC is challenging as while it is CSV-based, it is different enough from CSV that using a standard CSV parser will not yield reliable parsing results. Ultimately I'd like to speed things up with a C extension, but that can be a problem on some platforms without a C compiler and libraries. I figure "get it working right", then "get it working fast". Soon as I get issue #8 finished, I'll have a "complete" ZINC parser with unit tests: and I can start re-implementing parts for speed as I'll have the unit tests to tell me whether I've accidentally broken something or not. |
Making some test comparing JSON to ZINC on Niagara4 and can tell it is slow. Too slow infact. |
hszinc.parse(file_) take too much time to parse a simple zinc file. Is there a way to improve the performance of that function.
The text was updated successfully, but these errors were encountered: