]> git.koha-community.org Git - koha.git/commit
Bug 27673: Replace YAML with YAML::XS
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Feb 2021 14:28:10 +0000 (15:28 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Feb 2021 13:54:50 +0000 (14:54 +0100)
commit46f7239b08691a34616748db6cc10d18cc4fb16f
treee89e99f814ec4e1cef082662f2022e023e303b97
parent76c38d10d06dfcc377ab82cd312b12b8457a2dc8
Bug 27673: Replace YAML with YAML::XS

From tht YAML pod:

"""
This module has been released to CPAN as YAML::Old, and soon YAML.pm will be changed to just be a frontend interface module for all the various Perl YAML implementation modules, including YAML::Old.

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. It requires that you have a C compiler, since it is written in C.
"""

See also
https://gitlab.com/koha-community/qa-test-tools/-/merge_requests/35

Test plan:
Try some place where YAML::XS is not used and confirm that it works
correctly

QA note: This patch removes some uses of YAML that were not useful

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
35 files changed:
C4/Auth_with_cas.pm
C4/Circulation.pm
C4/Context.pm
C4/Items.pm
C4/Record.pm
C4/Ris.pm
C4/SMS.pm
C4/Search.pm
C4/Utils/DataTables/TablesSettings.pm
Koha/Filter/MARC/EmbedItems.pm
Koha/Template/Plugin/TablesSettings.pm
Koha/Z3950Responder/GenericSession.pm
about.pl
acqui/addorderiso2709.pl
admin/columns_settings.pl
admin/systempreferences.pl
circ/pendingreserves.pl
cpanfile
misc/maintenance/fix_mysql_constraints.pl
misc/migration_tools/bulkmarcimport.pl
misc/migration_tools/ifla/update.pl
misc/search_tools/export_elasticsearch_mappings.pl
opac/opac-ISBDdetail.pl
opac/opac-search.pl
reports/reserves_stats.pl
t/Context.t
t/Installer_PerlModules.t
t/db_dependent/Budgets.t
t/db_dependent/Koha/Z3950Responder/GenericSession.t
t/db_dependent/Koha/Z3950Responder/ZebraSession.t
t/db_dependent/OAI/Server.t
t/db_dependent/Search.t
t/db_dependent/Serials.t
xt/sample_notices.t
xt/yaml_valid.pl