AndyWang′s Blog
About
Archive
Category
Tags
Home
About
Archive
Category
Tags
Archive
Tags
map
map
1 posts with this tag
[TS] Set、flatMap 優化資料搜尋
2024年12月30日
TypeScript
Notes
/
TypeScript
+1
Notes
/
TypeScript
/
map
最近在工作中遇到需要從複雜的資料結構中提取特定資料的問題,面對這種多層結構的資料直接暴力搜尋效能明顯不太理想,正確的方式應該是先將資料做扁平化處理,再透過更高效的搜尋策略來提升效能。
6 mins read
|
1277 words