-
Notifications
You must be signed in to change notification settings - Fork 56
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
Switch to YAML::XS for YAML serialisation #888
Conversation
it's better at understanding the difference between `1`, `true`, and `"true"`. This leads to a few fixes around the codebase where it turned out we were getting away with some sloppiness thanks to `YAML`'s idiosyncracies.
server-0/ | ||
server-1/ |
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.
this is kinda unrelated but was something I came across when trying to rebuild the docker images to include YAML::XS
.
@@ -18,7 +18,7 @@ use File::Path qw( remove_tree ); | |||
use List::Util qw( any ); | |||
use POSIX qw( strftime WIFEXITED WEXITSTATUS ); | |||
|
|||
use YAML (); |
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.
this was unused.
@@ -410,9 +410,8 @@ sub generate_listeners | |||
type => "http", | |||
port => $unsecure_port, | |||
bind_address => $bind_host, | |||
tls => 0, |
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.
tls
and compress
are both disabled by default.
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 reasonable.
Straight from their docs they say to use YAML::XS
too:
If you want robust and fast YAML processing using the normal Dump/Load API, please consider switching to YAML::XS. It is by far the best Perl module for YAML at this time.
* origin/release-v1.15.2: Unbreak dendrite build; use json true Switch to YAML::XS for YAML serialisation (#888) Add DENDRITE_TRACE_INTERNAL
it's better at understanding the difference between
1
,true
, and"true"
. This leads to a few fixes around the codebase where it turned out wewere getting away with some sloppiness thanks to
YAML
's idiosyncracies.