Opened 12 years ago

Closed 12 years ago

#284 closed enhancement (fixed)

roar_buffer_set_len() should be optimized for incremental size changes

Reported by: ph3-der-loewe Owned by: ph3-der-loewe
Priority: wishlist Milestone: RoarAudio major release 1.0
Component: libroar and friends Version: 1.0beta6
Keywords: buffer Cc:
Architecture: Compiler:
Difficulty: normal Kernel:
Operating System: Parent Tickets:
Patch attached: no Protocol:
Sound driver: Topic: other

Description

roar_buffer_set_len() currently does a roar_mm_realloc() every time the size is incremented. This should be changed so it only uses roar_mm_realloc() when it needs more physical space.

This change will allow us to allocate a big buffer and add data in chunks every time updating the length with roar_buffer_set_len() in an much more efficient way.

Subtickets

Change History (2)

comment:1 Changed 12 years ago by ph3-der-loewe

  • Owner set to ph3-der-loewe
  • Status changed from new to accepted

comment:2 Changed 12 years ago by ph3-der-loewe

  • Resolution set to fixed
  • Status changed from accepted to closed
  • Version changed from current to 1.0beta6
Note: See TracTickets for help on using tickets.