-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update the readme for the metadata part ? #149
Comments
They are different. Bang variants accept metadata as their argument. Lines 91 to 107 in f74575e
You see, Parsing metadata is not that expensive, but is not free. So if you want to read multiple values from the metadata list, you better parse metadata once using https://github.com/d12frosted/vino/blob/0ddf2268a716165c05efe1282269772e35415ab0/vino.el#L632-L670 |
Oh right, I didn't quite understand. I thought the function was the same thing in the end, because one refers to the other (I had looked at how it was made). But in fact, one refers to the other WITH another, hence the difference in performance you mention. Okay, I just figured it out. I had a little trouble understanding, because the readme have"vulpea-meta-get!" and not "vulpea-meta-get", and knowing that other function with "!" existed, I just thought that one was more efficient than the other. Thanks you a lot for your answer. |
You're welcome. Thanks for reading README. I think I need to revamp some sections to make them more clear and reflect some of the latest changes. |
Np. Keep me informed about the moddifications of the readme if you make some change, you will have an external opinion ^^ I don't close the issue, but you can do it if you want ;) |
I was looking for how to use metadata in a good way for performance.
I was thinking about this part
"Functions of interest:
vulpea-meta - function to get metadata from NOTE-OR-ID. In most cases you should not use this function unless performance is important. In this case, take a look at bang functions, e.g. vulpea-meta-get!"
I do believe that in the end, from what I understood from the code, most of the functions boil down to "vulpea-buffer-meta-X" style functions.
So I thought, according to the readme, that there was a difference between the functions. But actually, I think not ^^
The text was updated successfully, but these errors were encountered: