Re: question about large-scale use of Pitch objects

2018-08-08 Thread David Kastrup
David Nalesnik writes: > On Wed, Aug 8, 2018 at 10:15 AM David Kastrup wrote: >> >> Pitches as a data structure contain one allocation. Ah, not quite, I forgot an indirection. One SCM allocation (standard size) and one C++ heap allocation (data structure size). >> In contrast, a list contains

Re: question about large-scale use of Pitch objects

2018-08-08 Thread David Nalesnik
On Wed, Aug 8, 2018 at 10:15 AM David Kastrup wrote: > > David Nalesnik writes: > > > Hi all, > > > > I'm working with very large Scheme lists of pitches in an ly file, > > transforming them, and passing them about from function to function. > > Right now, I'm using actual Pitch objects (such as

Re: question about large-scale use of Pitch objects

2018-08-08 Thread David Kastrup
David Nalesnik writes: > Hi all, > > I'm working with very large Scheme lists of pitches in an ly file, > transforming them, and passing them about from function to function. > Right now, I'm using actual Pitch objects (such as you would produce > with ly:make-pitch). Would it be a better idea t

question about large-scale use of Pitch objects

2018-08-08 Thread David Nalesnik
Hi all, I'm working with very large Scheme lists of pitches in an ly file, transforming them, and passing them about from function to function. Right now, I'm using actual Pitch objects (such as you would produce with ly:make-pitch). Would it be a better idea to work with pitches simply as number