Opened 19 years ago

Closed 19 years ago

Last modified 5 years ago

#8375 closed patch

common/stream optimization

Reported by: SF/h00ligan Owned by: fingolfin
Priority: normal Component: --Other--
Version: Keywords:
Cc: Game:


this patch introduce some optimization to common\stream module

Ticket imported from: #1082777. Ticket imported from: patches/480.

Attachments (1)

Stream.patch.bz2 (1.4 KB ) - added by SF/h00ligan 19 years ago.

Download all attachments as: .zip

Change History (7)

by SF/h00ligan, 19 years ago

Attachment: Stream.patch.bz2 added


comment:1 by sev-, 19 years ago

Summary: common\stream optimizationcommon/stream optimization

comment:2 by SF/h00ligan, 19 years ago

For me ReadStream and WriteStream looks like standart I/O inteface for stream. So it should consist of short simple methods gathered in declaretion section.

changes: - all methods defintion goes to header - some calls will run "faster" with inline e.g.: inline void writeSint32LE(int32 value) { writeUint32LE((uint32)value); } ... inline bool eof() const { return _pos == _bufSize; }

comment:3 by fingolfin, 19 years ago

Owner: set to fingolfin

comment:4 by fingolfin, 19 years ago

Status: newclosed

comment:5 by fingolfin, 19 years ago

I put a modified version of this patch into CVS. The inline keyword is not needed here, so I removed it. I also added some doxygen comments.

comment:6 by digitall, 5 years ago

Component: --Other--
Note: See TracTickets for help on using tickets.