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
improvements for linecache #46049
Comments
here comes a simple patch for linecache core module, which does the
advantages of this patch:
disadvantages:
summary:
__future__-work:
|
I'll look at this when I have time. If you find someone else interested |
Looking at the patch, the recorded seek points will probably be wrong if I'm also not sure not what the use case for very big files is. linecache |
ack, this could be a problem.
this is easy to answer: i used it for example for parsing (still just try to get linenumber 1234567 from a 2,3GB log file with the
i know :) |
@umaxx are you interested in taking this forward? |
@breamoreboy: what do you man by taking this forward? The patch is there. Since three years now, no one else seems to be interested. I personally do not have any interest in this anymore as I just do not use Python for this stuff anymore since a long time now too, so I do not care if Python linecache is going to be improved or not. IMHO, such things like slow linecache could be the reason for people to switch to languages with faster String-Operations and Caches like Perl. If you like just close the bug report or commit the patch or whatever - I do not care anymore. |
I am indeed going to close this. The patch isn't complete, since there's the line ending issue Antoine pointed out, which implies that there are also some missing tests. I doubt that linecache performance is something that affects very many people, but if someday someone wants to pick this up and finish it, it sounds like there's no objection in principle to the change. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: