0002-Correctly-pack-mdds.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. From 1c59fed7c43654736775580799f1165e8b8740a0 Mon Sep 17 00:00:00 2001
  2. From: Kohei Yoshida <kohei@libreoffice.org>
  3. Date: Thu, 15 Aug 2019 00:37:44 -0400
  4. Subject: [PATCH] Correctly pack mdds 1.5.0.
  5. Turns out the earlier mdds 1.5.0 package was not correctly packaged.
  6. I've fixed that now, and re-published the 1.5.0 package, which does
  7. contain the patch from Lubos.
  8. Change-Id: I1ff7d6568568860f7cccd3be3bc29aaaebe7fd73
  9. Reviewed-on: https://gerrit.libreoffice.org/77483
  10. Tested-by: Jenkins
  11. Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
  12. ---
  13. download.lst | 2 +-
  14. external/mdds/UnpackedTarball_mdds.mk | 1 -
  15. .../mdds/use-position-hint-also-back.patch | 50 -------------------
  16. 3 files changed, 1 insertion(+), 52 deletions(-)
  17. delete mode 100644 external/mdds/use-position-hint-also-back.patch
  18. diff --git a/download.lst b/download.lst
  19. index 59b58f96347c..046b440cd379 100644
  20. --- a/download.lst
  21. +++ b/download.lst
  22. @@ -168,7 +168,7 @@ export LXML_SHA256SUM := 940caef1ec7c78e0c34b0f6b94fe42d0f2022915ffc78643d28538a
  23. export LXML_TARBALL := lxml-4.1.1.tgz
  24. export MARIADB_CONNECTOR_C_SHA256SUM := fd2f751dea049c1907735eb236aeace1d811d6a8218118b00bbaa9b84dc5cd60
  25. export MARIADB_CONNECTOR_C_TARBALL := a233181e03d3c307668b4c722d881661-mariadb_client-2.0.0-src.tar.gz
  26. -export MDDS_SHA256SUM := 74cda018d5aa39a2f91652608efb066fd225f3597ce54733e6ab1e99e52606f7
  27. +export MDDS_SHA256SUM := 144d6debd7be32726f332eac14ef9f17e2d3cf89cb3250eb31a7127e0789680d
  28. export MDDS_TARBALL := mdds-1.5.0.tar.bz2
  29. export MDNSRESPONDER_SHA256SUM := e777b4d7dbf5eb1552cb80090ad1ede319067ab6e45e3990d68aabf6e8b3f5a0
  30. export MDNSRESPONDER_TARBALL := mDNSResponder-878.200.35.tar.gz
  31. diff --git a/external/mdds/UnpackedTarball_mdds.mk b/external/mdds/UnpackedTarball_mdds.mk
  32. index 625204d29619..c015f4c13f5a 100644
  33. --- a/external/mdds/UnpackedTarball_mdds.mk
  34. +++ b/external/mdds/UnpackedTarball_mdds.mk
  35. @@ -14,7 +14,6 @@ $(eval $(call gb_UnpackedTarball_set_tarball,mdds,$(MDDS_TARBALL)))
  36. $(eval $(call gb_UnpackedTarball_set_patchlevel,mdds,0))
  37. $(eval $(call gb_UnpackedTarball_add_patches,mdds,\
  38. - external/mdds/use-position-hint-also-back.patch \
  39. ))
  40. # vim: set noet sw=4 ts=4:
  41. diff --git a/external/mdds/use-position-hint-also-back.patch b/external/mdds/use-position-hint-also-back.patch
  42. deleted file mode 100644
  43. index 0b38c38d5536..000000000000
  44. --- a/external/mdds/use-position-hint-also-back.patch
  45. +++ /dev/null
  46. @@ -1,50 +0,0 @@
  47. -From 726e2f02d14833bde2f7eef9677f5564c485a992 Mon Sep 17 00:00:00 2001
  48. -From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= <l.lunak@centrum.cz>
  49. -Date: Fri, 17 May 2019 13:55:20 +0200
  50. -Subject: [PATCH] use position hint also when it is past the actual position
  51. -
  52. -The m_blocks data structure is a vector. It means that it can be
  53. -also walked back, instead of resetting and starting from the very
  54. -start.
  55. -
  56. -Allows a noticeable performance improvement in
  57. -https://gerrit.libreoffice.org/#/c/72424/ .
  58. ----
  59. - include/mdds/multi_type_vector_def.inl | 21 ++++++++++++++++++++-
  60. - 1 file changed, 20 insertions(+), 1 deletion(-)
  61. -
  62. -diff --git a/include/mdds/multi_type_vector_def.inl b/include/mdds/multi_type_vector_def.inl
  63. -index 22a0ee2..09894e6 100644
  64. ---- include/mdds/multi_type_vector_def.inl
  65. -+++ include/mdds/multi_type_vector_def.inl
  66. -@@ -861,7 +861,26 @@ void multi_type_vector<_CellBlockFunc, _EventFunc>::get_block_position(
  67. -
  68. - if (pos < start_row)
  69. - {
  70. -- // Position hint is past the insertion position. Reset.
  71. -+ // Position hint is past the insertion position.
  72. -+ // Walk back if that seems efficient.
  73. -+ if (pos > start_row / 2)
  74. -+ {
  75. -+ for (size_type i = block_index; i > 0;)
  76. -+ {
  77. -+ --i;
  78. -+ const block& blk = m_blocks[i];
  79. -+ start_row -= blk.m_size;
  80. -+ if (pos >= start_row)
  81. -+ {
  82. -+ // Row is in this block.
  83. -+ block_index = i;
  84. -+ return;
  85. -+ }
  86. -+ // Specified row is not in this block.
  87. -+ }
  88. -+ assert(start_row == 0);
  89. -+ }
  90. -+ // Otherwise reset.
  91. - start_row = 0;
  92. - block_index = 0;
  93. - }
  94. ---
  95. -2.16.4
  96. -