You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(profiling): shrink max file and function name
The maximum length is now 16,383, aka (1 << 14) - 1, or one less than
16 KiB. This has nice properties:
1. It's a single byte "wasted" to use a 16 KiB buffer, which is a
multiple of common page sizes.
2. It always encodes to 1 or 2 bytes in protobuf.
It's also plenty long--the UI is not going to nicely show function or
file names that are this long either.
This doesn't check all strings, just the function and file names. I am
thinking about enforcing it for all strings but this needs more
discussion, such as for an exception message or a fatal error message.
0 commit comments