Author Topic: Tell me why I did it like this. :)  (Read 19020 times)

0 Members and 1 Guest are viewing this topic.

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: Tell me why I did it like this. :)
« Reply #45 on: September 27, 2010, 09:51:20 AM »
alanjt, your last function dosent work for me...It returns the same string.


EDIT: Found it. fixed it.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: Tell me why I did it like this. :)
« Reply #46 on: September 27, 2010, 10:09:01 AM »
*whistle* ... Good job guys.

I have attached the file for your use.

Quote
;; Testing on a string with a length of: 4736
;; Benchmarking ...........Elapsed milliseconds / relative speed for 256 iteration(s):
;;
;;     (AT3:SPLITBYCAPS TEST-STR)........2698 / 10.51 <fastest>
;;     (MP2:SPLITBYCAPS TEST-STR)........2761 / 10.27
;;     (AT2:SPLITBYCAPS TEST-STR)........3167 / 8.95
;;     (AT1:SPLITBYCAPS TEST-STR)........3214 / 8.82
;;     (SE7EN:SPLITBYCAPS TEST-STR)......3244 / 8.74
;;     (MP1:SPLITBYCAPS TEST-STR)........3526 / 8.04
;;     (LM:_SPLITBYCAPS TEST-STR).......28346 / 1.00 <slowest>
;;
;; Testing on a string with a length of: 4736
;; Benchmarking ............Elapsed milliseconds / relative speed for 512 iteration(s):
;;
;;     (AT3:SPLITBYCAPS TEST-STR)........3385 / 15.84 <fastest>
;;     (MP2:SPLITBYCAPS TEST-STR)........3463 / 15.48
;;     (SE7EN:SPLITBYCAPS TEST-STR)......4321 / 12.41
;;     (AT2:SPLITBYCAPS TEST-STR)........4321 / 12.41
;;     (AT1:SPLITBYCAPS TEST-STR)........4368 / 12.27
;;     (MP1:SPLITBYCAPS TEST-STR)........4680 / 11.46
;;     (LM:_SPLITBYCAPS TEST-STR).......53617 / 1.00 <slowest>
;;
;; Testing on a string with a length of: 4736
;; Benchmarking ...........Elapsed milliseconds / relative speed for 256 iteration(s):
;;
;;     (MP2:SPLITBYCAPS TEST-STR)........1107 / 24.86 <fastest>
;;     (AT3:SPLITBYCAPS TEST-STR)........1107 / 24.86
;;     (AT1:SPLITBYCAPS TEST-STR)........1513 / 18.19
;;     (AT2:SPLITBYCAPS TEST-STR)........1513 / 18.19
;;     (SE7EN:SPLITBYCAPS TEST-STR)......1545 / 17.81
;;     (MP1:SPLITBYCAPS TEST-STR)........1623 / 16.96
;;     (LM:_SPLITBYCAPS TEST-STR).......27518 / 1.00 <slowest>
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: Tell me why I did it like this. :)
« Reply #47 on: September 27, 2010, 05:45:46 PM »
lol @ mine  :lol:

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Tell me why I did it like this. :)
« Reply #48 on: September 28, 2010, 09:35:57 AM »
Interesting results John, thanks for posting them.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: Tell me why I did it like this. :)
« Reply #49 on: September 28, 2010, 09:47:21 AM »
No problem at all MP. After looking closer at the code and the results i cant believe there is a difference between these statements:

(if (< 64 x 91) (list 32 x) (list x))

(if (<= 65 x 90) (list 32 x) (list x))

weird.

Lee, why laugh?! I cant tell you how many times I've spent hours on something that turned into a total abomination. In fact, I have several abominations i have to maintain here at my job because they mutated over time. ...the long and the short of it is this: did you learn anything (-i.e. what are you going to do differently next time)?

Besides, look at who you are up against; MP and alanjt --two people who are very good at what they do-.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Tell me why I did it like this. :)
« Reply #50 on: September 28, 2010, 10:46:31 AM »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Maverick®

  • Seagull
  • Posts: 14778
Re: Tell me why I did it like this. :)
« Reply #51 on: September 28, 2010, 10:58:57 AM »
i before e except after w.

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: Tell me why I did it like this. :)
« Reply #52 on: September 28, 2010, 11:06:35 AM »
I'm confused; i didn't spell that wrong did i?
http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query=weird
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Tell me why I did it like this. :)
« Reply #53 on: September 28, 2010, 11:11:01 AM »
<babelfish interpreter> He was contributing what he could to the thread </babelfish interpreter> :-D
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Tell me why I did it like this. :)
« Reply #54 on: September 28, 2010, 02:36:46 PM »
Very cool stuff. I know I learned from this thread.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox