[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tech/ - Technical SEO

Site architecture, schema markup & core web vitals
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1791313999001.jpg (205.59 KB, 1024x1024, img_1791313987919_i7vvfkpg.jpg)ImgOps Exif Google Yandex

b2200 No.2292

another tool to add to the pile. saw this tokencap thing trying to shrink repo snapshots by stripping out all those massive import lists. supposedly it can hit a 58% reduction on raw volume by using some sort of 'import clustering'.
> [Folded 18 imports: React, Lucide-React, Lodash]
looks fine for javascript but i'm skeptical about the python stuff. if it messes up any indentation or breaks the whitespace in yaml files then it's useless to me. they claim it uses some 'syntax boundary snapping' so it won't break the tree but regex-based folding always ends up breaking something weird when you have complex decorators or multiline strings. i've seen enough broken builds from "smart" automation to not trust this blindly. probably just another way to save a few bucks on context windows while introducing subtle bugs into the codebase. might be worth a look if it actually handles function signatures right without losing the actual logic.

found this here: https://dev.to/vansharora21/how-tokencap-folds-repetitive-imports-without-breaking-code-syntax-1gpa


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]