replying to myself here after realizing that i made this quite
complicated, sorry. i get similar results when just doing this on
macos here:

time /Applications/Pd-0.54-1.app/Contents/Resources/bin/pd -send "pd quit"
vs.
time /Applications/Pd-0.55-0test2c.app/Contents/Resources/bin/pd -send "pd quit"

cheers,
ben

Am Do., 16. Mai 2024 um 13:21 Uhr schrieb Benjamin Wesch
<benjamin.we...@gmail.com>:
>
> thanks for looking into this!
> when comparing click-on-app-icon vs. starting
> "/Applications/Pd-0.55-0test2c.app/Contents/Resources/bin/pd" from the
> terminal, i also get slightly different results. the latter seems to
> be a 1 or 2s faster (this was also the way i measured). the former
> even causes the loading icon to appear, which i never saw in the pd
> context iirc.
>
> but then again, i'm not sure if this is actually an issue at all! if
> you don't see it on your side on the same architecture, it may well be
> caused by some weird configuration on my side.
>
> just to document what i did to check the difference - which i hope is
> a valid approach ...  i have this little script "timer_pd.sh":
> #!/bin/bash
> LOG_FILE=$1
> START_TIME=$(gdate +%s.%N)
> while : ; do
>   if grep -q "connected" "$LOG_FILE"; then
>     END_TIME=$(gdate +%s.%N)
>     DURATION=$(echo "$END_TIME - $START_TIME" | bc -l)
>     printf "%s: %.2fs\n" "$LOG_FILE" "$DURATION"
>     break
>   fi
>   sleep 0.1
> done
>
> ... and then starting these commands to reset the log and start timer
> and pd in parallel:
> truncate -s 0 pd-0.55-0.log
> ./timer_pd.sh pd-0.55-0.log &
> /Applications/Pd-0.55-0test2c.app/Contents/Resources/bin/pd 2> pd-0.55-0.log &
>
> or obviously the same way:
> truncate -s 0 pd-0.54-1.log
> ./timer_pd.sh pd-0.54-1.log &
> /Applications/Pd-0.54-1.app/Contents/Resources/bin/pd 2> pd-0.54-1.log &
>
> cheers,
> ben
>
> Am Do., 16. Mai 2024 um 12:20 Uhr schrieb Miller Puckette
> <mpucke...@cloud.ucsd.edu>:
> >
> > I'm having trouble recreating this - I thik it was happening for a while
> > but now I can't seem to get consistent differences (after launching both
> > versions many times).  Are you launching it by clicking on the Pd icon,
> > or some other way?  (That seems to make a difference).
> >
> > thanks
> >
> > M
> >
> > On 5/15/24 1:25 PM, Benjamin Wesch wrote:
> > > hm, that's really weird. i tried to objectively measure here now with
> > > a script that waits for the "connected" output when starting both
> > > versions in parallel and i consistently get results quite similar to
> > > this:
> > >
> > > pd-0.54-1.log: 0.99s
> > > pd-0.55-0.log: 2.72s
> > >
> > > so my subjective impression was certainly wrong with 5s - but there's
> > > still a noticeable difference.
> > >
> > > cheers,
> > > ben
> > >
> > > Am Mi., 15. Mai 2024 um 11:51 Uhr schrieb Miller Puckette
> > > <mpucke...@cloud.ucsd.edu>:
> > >> Hmm... I'm not getting that on mine.  The startup order is indeed
> > >> different -
> > >>
> > >> the GUI doesn't start up until after any startup stuff has been done
> > >> (loading libraries,
> > >>
> > >> etc).  But I don't _think_ the overall time spent is different - do let
> > >> me know if you're
> > >>
> > >> finding otherwise :)
> > >>
> > >> Miller
> > >>
> > >> On 5/15/24 10:56 AM, Benjamin Wesch wrote:
> > >>> thanks a lot for the test release!
> > >>> what i noticed here (apple m2) in addition to the missing console
> > >>> output: pd now takes ~5s to start. not a big deal obviously, but it's
> > >>> a huge difference compared to 0.54, where the gui is ready after ~1s.
> > >>>
> > >>> cheers,
> > >>> ben
> > >>>
> > >>> Am Di., 14. Mai 2024 um 16:26 Uhr schrieb Miller Puckette
> > >>> <mpucke...@cloud.ucsd.edu>:
> > >>>> To Pd-announce:
> > >>>>
> > >>>> Pd version 0.55-0 test2 is available from 
> > >>>> http://msp.ucsd.edu/software.htm
> > >>>> or (source only) via github: 
> > >>>> https://urldefense.com/v3/__https://github.com/pure-data/pure-data__;!!Mih3wA!EYIIRk4dAHKvFUeDU8oAbbLqs85QxrQMAIKPfOBo4CV429prsy7Mkhr6G-eFg56gAQv31-q3Q0hYoDbWzZpR$
> > >>>>
> > >>>> There was no "test1" - it never made it through the release process.  
> > >>>> Also,
> > >>>> for Mac users, the app will show up as "Pd-0.55-0test2c" but in fact
> > >>>> it's just test2.
> > >>>>
> > >>>> cheers
> > >>>> Miller
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> Pd-announce mailing list
> > >>>> pd-annou...@lists.iem.at
> > >>>> https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-announce__;!!Mih3wA!EYIIRk4dAHKvFUeDU8oAbbLqs85QxrQMAIKPfOBo4CV429prsy7Mkhr6G-eFg56gAQv31-q3Q0hYoBRj2MA2$
> > >>>> _______________________________________________
> > >>>> Pd-list@lists.iem.at mailing list
> > >>>> UNSUBSCRIBE and account-management -> 
> > >>>> https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!EYIIRk4dAHKvFUeDU8oAbbLqs85QxrQMAIKPfOBo4CV429prsy7Mkhr6G-eFg56gAQv31-q3Q0hYoBYYetOc$
> > >>>
> > >>> _______________________________________________
> > >>> Pd-list@lists.iem.at mailing list
> > >>> UNSUBSCRIBE and account-management -> 
> > >>> https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!EYIIRk4dAHKvFUeDU8oAbbLqs85QxrQMAIKPfOBo4CV429prsy7Mkhr6G-eFg56gAQv31-q3Q0hYoBYYetOc$
> > >>
> > >>
> > >> _______________________________________________
> > >> Pd-list@lists.iem.at mailing list
> > >> UNSUBSCRIBE and account-management -> 
> > >> https://lists.puredata.info/listinfo/pd-list



_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to