[sword-devel] Patch to speed up iterator incrementation
Troy A. Griffitts
scribe at crosswire.org
Sun Jan 20 14:02:32 MST 2013
Applied. Thanks Jaak!
On 01/20/2013 07:06 PM, Jaak Ristioja wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> The attached patch corrects all Sword code where iterators were
> incremented using postfix operator++(int) in contexts where the return
> value of the expression was not used. Prefix operator++() should be
> used to avoid the creation of temporary iterators on every increment.
>
> Blessings,
> Jaak
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
>
> iQgcBAEBAgAGBQJQ/DIIAAoJEEqsYmEt1rCOT6c//2aGj9d2/iww6aEoE/4hg4U8
> SIOaUYjm8yPo/hMUUtyU/DTV4qJJL1m832UFDxXOygoMKQGcT2KR0x4wwRrOJJQT
> JoJo8Y6EqmQ7weGC6ivV6Aj4zdwTkWC+cwi74utcurnPBnyt+RlhikJJz0Ez/sHm
> VEn1IYsdwjAYPekJD7wqyYu2WNstI7jaIHYQB6IH3+IR/19DQ7Z4nz5AoY+9o6XE
> 764TGW1QD9pyUgvQJQJDudPj5WnHx16eDf+Vwv2wxY3adjG059pnfJ3Ib6OoqCKE
> IjFTsjfZoqYOW+tsoJIYaenlEsSiUjnNs0XWehdXZb4RGx3KPFiCXIOcLfXDXxtg
> xi1Vs4yyTfB9DkpsWjQeSrKlIiF1T+F0grr+tVI5lCHX+7raNM0ZGYP26FeJj9Te
> ws+9DdGgaW6u5sp3aLzMxtXIPH/LYt7eZXj1zxf4Mp989n3XjZz7nSeEcBZVxytq
> Vfh0ui5YY4CRedAhiUkChzJ34Lse7EW6ztxMxZTim4C5IAYxSDcFnmYN6At2xTwb
> CULOqNAATmNC2FrmM67/RHUU6kCnK6EqFfRZVR9ZL4M4nPQsrGrYKccpIf/nWM1W
> zjEZIrI1mGi77pGu76XR86VNzMYjOGuIk70eSYRRkVUy9LkiPUdOtwnNrOVFPf+V
> a0mzZOB+ZwYBlbZvh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6SEK4NAjfX6UIFg9DB3
> yhCsXMfzK0p5mZ1XdMrozXVFnjL8cAsWJmXdw8Sm+OOPDUmIwIg7CZZKYMcuscZO
> xkwKcPSrHz4/o30Kvcho6ArWILrVntbfurn78k1j2YNhoiGdjFFl5vUmJzEVWfa2
> 8L7ijaUpLue40HM3zIY/QS8N6IXykZ3iYQTsDwccwLk2sja/dwYxutaxs7T9fMVu
> DckO3avg4xZBPOfvj5agmI7rOiLcRmOhcHmMvof4c+SV9B4EMj47RQtzXruGWdIR
> mAzixcnHoxhhz32yoNiO3KeYVyP/KGGnB/e0l2N1GOnjViT0Y+Re0ilRYml/9Z6B
> wnvXy1CcMr7tIVcEbGGdh16pziXSBo/kB2GWpprgDar7r1s6Ga/anGP7NL2GoLrF
> 5ETaBZHqgfJGD0/RgnVy5NZC+E4WwWxFEPS3O1h1NLuvUyjdoUA0XZBoZVIDmvgz
> bZjrTnIqp01L6PBcnl4+E+E9xAYQVWY1zzgHHVzCdKxw/xPPWmgHlkSwFlHr+4es
> Y06SR5bK2ezQDykiObFs/P0dIv8K1mgFdU7YPc/IYYqH7PznzR90T616B4jvQuSc
> Hg/R2ybFQqPPfHScT5XXdH7Ws1a0u4lqSs9jt0zu6xEpT2seDzJW3spkEnNphM6R
> bycyI0J7yU9pfUHP9XmbbyoQUjIMHuiA0ZBFPx5DTNP7Ij6JiPlMR4oSBxVDjayu
> vkk+I+HN8VlgcOeELQhAB34Tzs39kZTY6IAAutiavelsFmq+XBVNdHyli25oiARj
> /Ozbk0FHiWuNDdVs4shTtSVUkKRGuAFyDTymjSNKvmtIwtOLI53ok1JJA/yOu9kg
> 6Nen2L0mVHSl4JDkSYVuM20k7wKnfT5vZjbikbIaXrNwQFXki3Mz1QQcivQvzEp4
> kYge36a96eqN6ECJmk+3iy/+gwfoCr8V65eI6oWW5NUi27ox8P2kQz9RBvNYo0gi
> ZV3JzAWDpuZWJSSL//4i
> =feb5
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20130120/a9cf487a/attachment.html>
More information about the sword-devel
mailing list