vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
NEU! sevCoolbar 3.0 - Professionelle Toolbars im modernen Design!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Fortgeschrittene Programmierung
Re: Konverter schneller machen 
Autor: thuhn01
Datum: 14.02.06 08:58

Na fang doch schon mal damit an: (liegt aber im ms-Sekunden Bereich)

Problem report by location - vbforum

2 Dead variable: FSO
2 Object variable declared As New: FSO

Sub vbforum.Form_Load

Dead procedure
2 Dead variable: s
5 LenB is faster than = "" or <> ""
10 LenB is faster than = "" or <> ""
10 Dollar would increase performance: Left$
11 Dollar would increase performance: Left$
19 Dollar would increase performance: Left$
19 Dollar would increase performance: Mid$
37 Dollar would increase performance: Left$



Problem summary

Problem Type Count
Dead procedure/declaration/event Optim. 1
Dead variable/parameter Optim. 2
Dollar would increase performance Optim. 5
LenB is faster than = "" or <> "" Optim. 2
Object variable declared As New Optim. 1
Unused file Optim. 1

Type Count
Optimization 12 ********************
Total 12
Problems/logical code line 0,26

Filter: <Optimizations>



Problem descriptions

Dead procedure/declaration/event
A procedure, a DLL declaration or an Event declaration is not used by the
project. It is not called by the code nor executed by any other means. You may
remove it if you are sure you won't need it later. The removal doesn't affect
the functionality of your program. - Event declarations are reported dead only
if they are not raised nor handled. See the problem Event not raised for events
that would be handled but that are not fired. Optimization. Severity: Warning.

Dead variable/parameter
A variable or constant is not used. You may remove it if you are sure you won't
need it later. The removal doesn't affect the functionality of your program.
Optimization. Severity: Warning.

Dollar would increase performance
Adding $ at the end of a function would increase the speed of execution.
Certain functions, like Left, Mid and Right return a Variant that contains a
String. The corresponding functions Left$, Mid$ and Right$ return a String.
Using the String version makes your program run faster. Applies to VB 3-6.
Optimization. Severity: Info.

LenB is faster than = "" or <> ""
To check if a string is empty or not, it's quickest to use the LenB function.
To test for an empty string, use LenB(str)=0. To test for a non-empty string,
use LenB(str)<>0. LenB is available in VB 4-6. In VB3 and VB.NET, use the Len
function for the same effect. Optimization. Severity: Warning.

Object variable declared As New
In VB Classic, declaring an object variable As New creates an
auto-instantiating variable. Each time you read the contents of the variable,
VB first checks if the variable contains an object, and creates one if not.
This adds overhead, thus slowing your program down. To achieve better
performance, remove the word New from the declaration, and instantiate your
variable (Set x = New Class) before it is used. It makes sense to test with 'If
x Is Nothing Then' before accessing the variable, to avoid the run-time error
'Object variable not set'. In addition, VB.NET has different semantics for As
New. Applies to VB 3-6. Optimization. Severity: Warning.


Project Analyzer 7.1.02 (14.02.2006)
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Konverter schneller machen1.075met13.02.06 08:13
Re: Konverter schneller machen680thuhn0114.02.06 08:58
Re: Konverter schneller machen637met14.02.06 09:26

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel