0bin icon indicating copy to clipboard operation
0bin copied to clipboard

Decrypt / uncrypt and syntax hilight in a web worker if available

Open sametmax opened this issue 12 years ago • 3 comments

It will prevent the UI from blocking and should feel faster.

Also, we should start processing the paste before the page rendering (as soon as we got the paste data available), and send events to update the progress bar. The main thread, when dom is ready, will hook on those events and be avaible to udate the css class accordingly.

sametmax avatar Jul 07 '13 17:07 sametmax

You mean using a Pygment http API ?

2013/7/7 sametmax [email protected]

It will prevent the UI from blocking and should feel faster.

Also, we should start processing the paste before the page rendering (as soon as we got the paste data available), and send events to update the progress bar. The main thread, when dom is ready, will hook on those events and be avaible to udate the css class accordingly.

— Reply to this email directly or view it on GitHubhttps://github.com/sametmax/0bin/issues/50 .

Natim avatar Jul 07 '13 18:07 Natim

No, I mean using actual javascript webworker to do what we are currently doing in an other thread instead of the main thread.

Le dim. 07 juil. 2013 20:44:45 CEST, Natim a écrit :

You mean using a Pygment http API ?

2013/7/7 sametmax [email protected]

It will prevent the UI from blocking and should feel faster.

Also, we should start processing the paste before the page rendering (as soon as we got the paste data available), and send events to update the progress bar. The main thread, when dom is ready, will hook on those events and be avaible to udate the css class accordingly.

— Reply to this email directly or view it on GitHubhttps://github.com/sametmax/0bin/issues/50 .

— Reply to this email directly or view it on GitHub https://github.com/sametmax/0bin/issues/50#issuecomment-20575204.

sametmax avatar Jul 07 '13 18:07 sametmax

@sametmax that would be a really nice feature. Currently on larger pastes syntax highlight is slow.(And by large I mean like 3.5 mb)

CorbanR avatar Nov 04 '15 22:11 CorbanR