-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor AST Processing for tags, links and tasks #65
Comments
We can optimize our process even more by iterating through all the nodes of the AST in a single pass. Currently, we perform the following steps: For Links:
For Tags:
To improve efficiency, we can consider the following approach:
This way, we can consolidate the node selection and handle each node type in a more streamlined manner, potentially saving processing time. |
@mohamedsalem401 i wouldn't think too much about optimization at this point - more about the simplicity of the code. (i know i wasn't completely clear on this). so i think the first example is correct. The overall signature for our functions extracting info will be something like:
|
[#65, refactor ast for tags/links]
FIXED in #66 |
We will extract the conversion of source to AST from the
ExtractlinksFromBody
toprocessAST
functionthen instead of
we will do:
The text was updated successfully, but these errors were encountered: