asterisk/formats
Matthew Jordan 16fd65bb73 Improve disk writes for wav49 format
Writing to a file in the wav49 format performs rather inefficiently. The
procedure is approximately:
 (1) Write GSM frame to the end of the file
 (2) Seek to the end of the file
 (3) Seek to the header
 (4) Update the file size
 (5) Seek (again) to the end of the file
 (6) Repeat

This pattern negates any attempt to use the stdio buffering setup in
ast_writefile. It also results in many small writes that require a seek going
to the disk each second which translates to poor disk performance on certain
file systems, particularly when there are multiple wav49 files being written
simultaneously.

(closes issue ASTERISK-19595)
Reported by: Byron Clark
Tested by: Byron Clark
patches:
  gsm_wav_only_update_header_on_close.patch uploaded by byronclark (License 6157)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-08-08 18:40:15 +00:00
..
Makefile Title update 2012-10-14 21:56:13 +00:00
format_g719.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_g723.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_g726.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
format_g729.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_gsm.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_h263.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_h264.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_ilbc.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_jpeg.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
format_ogg_vorbis.c Clean up doxygen warnings 2012-08-30 14:23:28 +00:00
format_pcm.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_siren7.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_siren14.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_sln.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_vox.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_wav.c Fix error that caused truncate operations to fail 2012-04-29 19:50:57 +00:00
format_wav_gsm.c Improve disk writes for wav49 format 2013-08-08 18:40:15 +00:00
msgsm.h More merges from resolve-shadow warnings: 2008-08-07 15:16:48 +00:00