node-efficientnet icon indicating copy to clipboard operation
node-efficientnet copied to clipboard

Compress and decompress misc json file with snappy compression

Open ntedgi opened this issue 2 years ago • 9 comments

After adding a lot of translations files the package size increase to ~600KB .

We need to compress to json file and to decompress them at runtime i prefer using snappy compression

then when loading a specific language provider we only decompress is language misc file

ntedgi avatar Oct 11 '22 19:10 ntedgi

Hey @ntedgi, if nobody is working on this, is it okay if I give it a shot? (I am not particalurly well-versed in machine learning, but this seems like something I might be able to help with)

But just to confirm - this is to compress the language files found here.

Then decompress the specific language that is specified by the "locale" key in the result object?

rokaicker avatar Oct 16 '22 21:10 rokaicker

Go for it thanks

ntedgi avatar Oct 17 '22 04:10 ntedgi

@ntedgi anyone currently working on this, if not can i pick up this issue?

PranavBhatS avatar Jan 29 '23 16:01 PranavBhatS

Go for it

ntedgi avatar Jan 29 '23 16:01 ntedgi

Hey @ntedgi Can I pick up this issue if its not resolved yet? Also I wanted to know, are you aiming for static and compressed translation files before uncompressing them at runtime?

SananditaDas avatar Mar 06 '23 06:03 SananditaDas

Hey @ntedgi Can I pick up this issue if its not resolved yet? Also I wanted to know, are you aiming for static and compressed translation files before uncompressing them at runtime?

I have replaced the json translation files with compressed binary-s (using snappy), and the code is working fine while decompressing the lang file at runtime. But some of the testcases are failing, which are invoking the remote model. Could you help?

SananditaDas avatar Mar 06 '23 13:03 SananditaDas

  • Update remote files links to the relative path at your working branch
  • fix the falling test
  • after test pass and mearge to master
  • Change test files to relative path at 'main' branch

ntedgi avatar Mar 06 '23 17:03 ntedgi

  • Update remote files links to the relative path at your working branch
  • fix the falling test
  • after test pass and mearge to master
  • Change test files to relative path at 'main' branch

Means, I need to change the remote model url to localModelRootDirectory , right? Then after merging with main branch, change it back to the original url?

SananditaDas avatar Mar 06 '23 18:03 SananditaDas

Correct

On Mon, 6 Mar 2023 at 20:46 Sanandita Das @.***> wrote:

  • Update remote files links to the relative path at your working branch
  • fix the falling test
  • after test pass and mearge to master
  • Change test files to relative path at 'main' branch

Means, I need to change the remote model url to localModelRootDirectory , right? Then after merging with main branch, change it back to the original url?

— Reply to this email directly, view it on GitHub https://github.com/ntedgi/node-efficientnet/issues/102#issuecomment-1456753345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHOL4EK2RLC3J3MRMMKT45LW2YWJBANCNFSM6AAAAAARCTHLQ4 . You are receiving this because you were mentioned.Message ID: @.***>

ntedgi avatar Mar 06 '23 18:03 ntedgi