{"id":126,"date":"2021-06-29T15:15:31","date_gmt":"2021-06-29T15:15:31","guid":{"rendered":"https:\/\/blogs.scummvm.org\/twan\/?p=126"},"modified":"2021-06-29T15:21:44","modified_gmt":"2021-06-29T15:21:44","slug":"found-new-text-search-algorithm","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/twan\/2021\/06\/29\/found-new-text-search-algorithm\/","title":{"rendered":"FOUND !!! New text search algorithm"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"628\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2564-06-29-at-23.16.07-1024x628.png\" alt=\"\" class=\"wp-image-131\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2564-06-29-at-23.16.07-1024x628.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2564-06-29-at-23.16.07-300x184.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2564-06-29-at-23.16.07-768x471.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2564-06-29-at-23.16.07-1536x942.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2564-06-29-at-23.16.07.png 1970w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Yesterday, my tactic was to search for &#8220;const char *&#8221; and print the text from the functions that have it. <\/p>\n\n\n\n<p>Today, I changed my method to printing just the text, and searching &#8220;const char *text&#8221;, so that I didn&#8217;t need to modify the debug message every time I searched. Besides, for which function it comes from doesn&#8217;t matter, I&#8217;m on O(logN) complexity anyway, no need to print.<\/p>\n\n\n\n<p>Fist in the air. <\/p>\n\n\n\n<p>Now I will hurry back to see for exactly from which part of the code the message came from.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday, my tactic was to search for &#8220;const char *&#8221; and print the text from the functions that have it. Today, I changed my method to printing just the text, and searching &#8220;const char *text&#8221;, so that I didn&#8217;t need to modify the debug message every time I searched. Besides, for which function it comes &#8230; <a title=\"FOUND !!! New text search algorithm\" class=\"read-more\" href=\"https:\/\/blogs.scummvm.org\/twan\/2021\/06\/29\/found-new-text-search-algorithm\/\">Read more<span class=\"screen-reader-text\">FOUND !!! New text search algorithm<\/span><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-codingprogress","category-smalltalk"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts\/126\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}