prepend vs. message + $1


    Oct 18 2020 | 12:11 am
    Hi!
    I tried to search the forum but wasn't able to find a clear answer, so: Is there difference in terms of efficency (or something else worth considering) between using a prepend object and using a message box with a dollar sign?
    Thanks!

    • Oct 18 2020 | 12:44 am
      at least in older versions of max message was said to be slower because it is a GUI object. but they are not 100% the same thing anway. i mostly use pak (when the number of items is knowns and fixed)
    • Oct 18 2020 | 5:36 pm
      Interesting. . In current version is there still a difference ? I always use the message method..
    • Oct 18 2020 | 7:40 pm
      a minimum difference could be there when compared to list/pack/pak, because message allows arguments of any type, but i dont think that is something to care about today. function and form (aesthetics, readability, do i need to script it? do i want it to ignore wrong types?...) should be how you decide which one to use. many people like the message object because it looks different from object boxes. i use [message] mostly as my comment object and i write "list" instead of "pack" if its content is a constant (f.e. for initialisation) in my small world [message]s main function is that you can click it, not that you can store or assemble a list in it.
    • Oct 19 2020 | 11:33 pm
      Thanks! This has been most illuminating. I've started using Max almost 20 years ago when performance aspects were understandably emphasized much more. I really have thought about this pretty naively but now totally agree with Roman's philosophy.