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

Is it worth checking whether a file *should* be highlighted? #8

Open
chriskrycho opened this issue Nov 24, 2016 · 0 comments
Open

Is it worth checking whether a file *should* be highlighted? #8

chriskrycho opened this issue Nov 24, 2016 · 0 comments
Milestone

Comments

@chriskrycho
Copy link
Owner

To-benchmark: what are the performance characteristics of searching a large string blob for the characters <pre vs. doing the full XML event stream of the files? The potential performance tradeoff is: it would be easy to eliminate a lot of files which simply don't need to be syntax highlighted (because they don't have any <pre><code>...</code></pre> blocks at all). But it's all down to that single tradeoff: string searching vs. XML streaming.

@chriskrycho chriskrycho modified the milestone: 1.0 Dec 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant