[Koha-bugs] [Bug 31455] Batch modification tool orders found items by itemnumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 1 21:47:11 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31455

--- Comment #4 from Joonas Kylmälä <joonas.kylmala at iki.fi> ---
Created attachment 140062
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140062&action=edit
Bug 31455: (QA follow-up) Make table creation O(N)

We can insert the indices before the main loop to a hash,
this way we don't have to look up during each loop iteration
the index from an array which in the worst case might take O(N)
thus making the total time complexity O(N^2).

Signed-off-by: Joonas Kylmälä <joonas.kylmala at iki.fi>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list