Since JS is too slow (has unavoidable per-file-item overhead), evaluator is too simplistic/buggy and there are no simple column examples of native dll column plugins you can't have a universal custom column plugin without suffering some visible slowdowns of regular folder opening.
But now we have a native integration with Everything, which gives the count of folder/file items in a folder "for free" to DOpus
So is there a way to write a custom JS column, but only make it work inside a folder that has below 1000 items, and otherwise do nothing and not incur any performance penalty?
I guess in that case your only option is to turn off the script before entering a folder with many items.
Maybe columns could get a switch that prevents them from being automatically calculated if certain conditions are met (too many items, types of files, location, etc.).