-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PLATFORM-860]: Veil memory optimisations and refactoring #60
[PLATFORM-860]: Veil memory optimisations and refactoring #60
Conversation
Co-authored-by: MaeIsBad <26093674+MaeIsBad@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems moslty good for me
Partial, | ||
|
||
/// Whether to redact with a fixed width, ignoring the length of the data. | ||
Fixed(NonZeroU8), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason to keep this as just an u8 instead of u32 or usize?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think anyone is gonna need anything greater than 255 characters :V
Can this be merged @WilliamVenner @MaeIsBad? |
Yes I think it's ok :) just need approve |
https://prima-assicurazioni-spa.myjetbrains.com/youtrack/issue/PLATFORM-860
Veil has a large opportunity to optimise memory usage by writing directly to the
std::fmt::Formatter
, this should have been done from the start really.I've also used this opportunity to refactor internal Veil code, as it was getting a bit messy and unclear.