Re: [Tutor] Performance of classes

2006-06-18 Thread Ismael Garrido
Kent Johnson wrote: > Ismael Garrido wrote: > >> I have attached the code, I hope that's fine. If you have any further >> optimization suggestions I would be very glad to hear them :) >> > > generarResist() is doing a lot more work than necessary. Because i and j > both iterate the entire

Re: [Tutor] Performance of classes

2006-06-18 Thread Kent Johnson
Ismael Garrido wrote: > Hello > > I'm writing a program to find an appropiate combination of resistances > to obtain a desired value of resistance. The program takes into account > how many resistances you have available and their resistance in ohms. > > Since this problem (as far as I can tell

[Tutor] Performance of classes

2006-06-17 Thread Ismael Garrido
Hello I'm writing a program to find an appropiate combination of resistances to obtain a desired value of resistance. The program takes into account how many resistances you have available and their resistance in ohms. A short review of physics: resistors can be arranged in series or in para