[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: icarus verilog, svector question

Hash: SHA1

Joshua Boyd wrote:
| In svector.h, there is a specialization:
| inline svector<string>::svector<string>(unsigned size)
| How mad is the speed hit from leaving this out?
| The reason I ask is because doing specialization in this manner is
| non-standard.  I believe it was at one time common, but it's use has
| been removed from the standard.  It works for GCC, but it fails for
| SunStudio and MIPSpro, and the chances are it would also fail for xlc.
| If it is a big performance gain, I'll rewrite it, but if it isn't, I'd
| be happy to leave it out.

That specialization is there not for speed but for functionality.
That case is only still used in PUdp.h. It may be possible to
remove those last vestiges from the source.
- --
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
http://www.icarus.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org