You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a Google Product Categoty = 6797, Python needs to iterate 5437 values to find the String 食品・飲料 > 飲料 > バターミルク , this will be a huge performance issue.
Why here uses String value -> id format?
shoptimizer/shoptimizer_api/util/gpc_id_to_string_converter.py
Lines 55 to 65 in a9fff3a
If I have a
Google Product Categoty
=6797
, Python needs to iterate5437
values to find the String食品・飲料 > 飲料 > バターミルク
, this will be a huge performance issue.shoptimizer/shoptimizer_api/config/gpc_string_to_id_mapping_ja.json
Line 5438 in a9fff3a
So, from my opinion, we need to init an id -> String value dictionary, then use o(logn) complexity to get the String
The text was updated successfully, but these errors were encountered: