seaQueue@lemmy.world to Programmer Humor@lemmy.ml · 6 months ago50 million rendered polygons vs one spicy 4.2MB boilemmy.worldimagemessage-square133fedilinkarrow-up11.35Karrow-down112
arrow-up11.34Karrow-down1image50 million rendered polygons vs one spicy 4.2MB boilemmy.worldseaQueue@lemmy.world to Programmer Humor@lemmy.ml · 6 months agomessage-square133fedilink
minus-squarebjornsno@lemm.eelinkfedilinkarrow-up11·6 months agoExcept if it’s a single line file, only god can help you then. (Or running prettier -w on it before opening it or whatever.)
minus-squareexpr@programming.devlinkfedilinkarrow-up4·edit-26 months agohttps://porkmail.org/era/unix/award#cat jq < file.json cat is for concatenating multiple files, not redirecting single files.
minus-squarejimbolauski@lemm.eelinkfedilinkarrow-up4arrow-down2·6 months agoRender Media works the best rm file.json
minus-squarexavier666@lemm.eelinkfedilinkEnglisharrow-up3·6 months agoYes, Render Media is the best. It’s hard to believe that not many people know about this tool. It’s also natively installed in all Linux distros.
minus-squarefl42v@lemmy.mllinkfedilinkarrow-up6·6 months ago4.2 megs on one line? Vim probably can handle it fine, although syntax won’t be highlighted past a certain point
minus-squarebjornsno@lemm.eelinkfedilinkarrow-up5·6 months agoI’ve accidentally opened enormous single line json files more than once. Could be lsp config or treesitter or any number of things but trying to do any operations after opening such a file is not a good time.
minus-squarefl42v@lemmy.mllinkfedilinkarrow-up1·6 months agoYeah, very well may be. LSPs always slow down opening big files, so I usually inspect those with an empty/different config
minus-squareexpr@programming.devlinkfedilinkarrow-up2·6 months ago:syntax off and it works just fine.
Works fine in
vim
Except if it’s a single line file, only god can help you then. (Or running
prettier -w
on it before opening it or whatever.)cat file.json | jq
also workshttps://porkmail.org/era/unix/award#cat
jq < file.json
cat
is for concatenating multiple files, not redirecting single files.Render Media works the best
rm file.json
Yes, Render Media is the best. It’s hard to believe that not many people know about this tool. It’s also natively installed in all Linux distros.
4.2 megs on one line? Vim probably can handle it fine, although syntax won’t be highlighted past a certain point
I’ve accidentally opened enormous single line json files more than once. Could be lsp config or treesitter or any number of things but trying to do any operations after opening such a file is not a good time.
Yeah, very well may be. LSPs always slow down opening big files, so I usually inspect those with an empty/different config
:syntax off
and it works just fine.