Comment on revision r288 in aimc

3 views
Skip to first unread message

ai...@googlecode.com

unread,
May 29, 2013, 11:27:52 AM5/29/13
to aimc...@googlegroups.com
Comment by r...@google.com:

Line-by-line comments:

File: /trunk/carfac/carfac.cc (r288)
===============================================================================

Line 71: for (int32_t i = 0; i < n_segs; ++i) {
-------------------------------------------------------------------------------
Is there a good reason to break the input into segments instead of
processing it all at once? I.e. is RunSegment(sound_data, 0,
sound_data.size(), false, output) identical to Run(sound_data, output)?

Does keeping the segment size small decrease the size of some intermediate
arrays somewhere? If not, I'd just rewrite Run as a one liner, or (even
better, I think), get rid of it altogether to keep the API concise.

Thoughts? I'm happy to take care of this.

For more information:
https://code.google.com/p/aimc/source/detail?r=288

Dick Lyon

unread,
May 29, 2013, 11:51:43 AM5/29/13
to aimc...@googlegroups.com
Yes; you want to be able to run this in a real-time system.  You don't have the input all at once.






--
You received this message because you are subscribed to the Google Groups "aimc-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aimc-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Ron Weiss

unread,
May 29, 2013, 12:06:58 PM5/29/13
to aimc...@googlegroups.com
On Wed, May 29, 2013 at 11:51 AM, Dick Lyon <dick...@google.com> wrote:
> Yes; you want to be able to run this in a real-time system. You don't have
> the input all at once.

Understood. I'm suggesting that we do away with Run, not RunSegment,
which is clearly the more versatile interface.

>
>
>
>
> On Wed, May 29, 2013 at 8:27 AM, <ai...@googlecode.com> wrote:
>>
>> Comment by r...@google.com:
>>
>> Line-by-line comments:
>>
>> File: /trunk/carfac/carfac.cc (r288)
>>
>> ===============================================================================
>>
>> Line 71: for (int32_t i = 0; i < n_segs; ++i) {
>>
>> -------------------------------------------------------------------------------
>> Is there a good reason to break the input into segments instead of
>> processing it all at once? I.e. is RunSegment(sound_data, 0,
>> sound_data.size(), false, output) identical to Run(sound_data, output)?
>>
>> Does keeping the segment size small decrease the size of some intermediate
>> arrays somewhere? If not, I'd just rewrite Run as a one liner, or (even
>> better, I think), get rid of it altogether to keep the API concise.
>>
>> Thoughts? I'm happy to take care of this.
>>
>> For more information:
>> https://code.google.com/p/aimc/source/detail?r=288
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "aimc-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to aimc-dev+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "aimc-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to aimc-dev+u...@googlegroups.com.

Dick Lyon

unread,
May 29, 2013, 12:40:00 PM5/29/13
to aimc...@googlegroups.com

Yes get rid of Run.

Reply all
Reply to author
Forward
0 new messages