Opened 15 years ago

Closed 15 years ago

Last modified 11 months ago

#8375 closed patch

common/stream optimization

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


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 15 years ago.

Download all attachments as: .zip

Change History (7)

by SF/h00ligan, 15 years ago

Attachment: Stream.patch.bz2 added


comment:1 by sev-, 15 years ago

Summary: common\stream optimizationcommon/stream optimization

comment:2 by SF/h00ligan, 15 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.

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

comment:3 by fingolfin, 15 years ago

Owner: set to fingolfin

comment:4 by fingolfin, 15 years ago

Status: newclosed

comment:5 by fingolfin, 15 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, 11 months ago

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