vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
242 stars 41 forks source link

fix: Improve Jupyter performance #163

Closed DanielSchiavini closed 5 months ago

DanielSchiavini commented 5 months ago

What I did

Improved the jupyter plugin performance considerably Fixed the empty elements while calling javascript

How I did it

How to verify it

Description for the changelog

Cute Animal Picture

image

charles-cooper commented 5 months ago

i'm not convinced we want the complexity of introducing minification into the build process. fwiw after compression the minified version saves 900 bytes:

(boa) ~/titanoboa $ gzip -v < boa/integrations/jupyter/jupyter.js | wc
 61.7%
      6      47    1822
(boa) ~/titanoboa $ gzip -v < boa/integrations/jupyter/jupyter.min.js | wc
 47.0%
      3      19     949
charles-cooper commented 5 months ago

code review note: discussed refactoring the jupyter.js file into a full-on extension, but it seems to introduce more complexity than it is worth.

charles-cooper commented 5 months ago

just tested this -- works amazing! and it's deployed to try.vyperlang.org now :)