Re: VB:NET Anwendung schneller machen



> In einen Windows Ordner werden Textdateien kopiert. Meine Anwendung holt die
> Textdateien per Notifikation ab, wandelt die Texte um in XML, und dann in PDF.

wie wird die PDF-Sache gelöst?
Durch grosse, externe Hilfsprogramme ('Acrobat') o.ä., mit Kommandozeile/COM-Interop?
Meist wäre da ein Flaschenhals.

> Aus dem PDF generiert die Anwendung einen shwert, der an eine Smartcard in
> einem Kartenleser geschickt wird. Die Smartcard liefert eine Signatur zurück.
> Die Anwendung manipuliert das PDF und sendet es per SMTP an einen e-amil Server.
> Ich vermute, es ist schwer bei diesem Ablauf etwas zu parallelisieren.
> Wäre es möglich, meine Anwendung zweimal zu starten, um den Durchsatz zu erhöhen??

im Prinzip ja, aber oft werden dann trotzdem wieder Synchronisationen nötig...
Je nach obiger PDF-Sache (externes Tool?) könnten da auch spezifische Probleme entstehen.
Die 'Smartcard' wird vermutlich auch nur eine Verarbeitung nach der anderen durchführen,
weitere müssen warten oder erhalten gar 'Busy' Fehler...

Da müsste man erst mal sicher einige Analysen und Profiling machen,
um herauszufinden was parallelisierbar ist und wo es am meisten bringt...
(und die Festplatte wird ja nicht schneller durch mehr Threads/CPUs!)


> Wenn ich die Anwendung zweimal starte,
> kann ich dann jede Anwendung einem separaten Prozessor zuweisen??

ja, zB mit dem Windows Task-Manager sogar 'fix' auf eine bestimmte CPU,
bzw Code .NET: Process.ProcessorAffinity.
Aber Anwendungen (jeder Prozess hat ja mind. 1 [Haupt-]Thread)
werden von Windows sonst schon vollautomatisch auf alle CPUs 'verteilt'....
(was manchmal/oft effizienter ist als fixe Zuordnung)



--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/


.



Relevant Pages

  • Re: Printing to PDF... Much easier on a Windows boxen!
    ... if Adobe PDF is the ... Well, I know that Adobe wrote the program, but here's how I print to ... One of the great things about the Mac PDF functionality is that it is easy ... Fewer steps than what was described for Windows and allows a lot more ...
    (comp.sys.mac.advocacy)
  • Re: Virtual PDF-printer for PPC2003
    ... like old DOS computers- any printing support must be part of the PROGRAM ... print to "Windows" and Windows itself interfaces to any supported printer. ... PDF driver would have to be part of your app ... easy by comparision- they only have to convert a single format to PDF- the ...
    (microsoft.public.pocketpc)
  • Re: Smartcard removal not detected after login on Windows 2003 server
    ... Windows XP should already implement what I described below though. ... > I've found the code that we do at WlxLoggedOutSASto trick the GINA ... > into thinking we're not logging in with smartcard. ... >>> removals after I've done a screen lock? ...
    (microsoft.public.platformsdk.security)
  • Re: How to block system copy commands at driver level
    ... unless we know how Windows works with these events at low level. ... Store those keys on a SmartCard ... protected with the public key used to encrypt them before they are added. ... requirements dose says that copy protection for basic copy commands ...
    (microsoft.public.development.device.drivers)
  • Re: phonetic symbols
    ... Actually I found a pdf I had from Windows and it works wonderfully In Debian ... ---there are no progrmas that I know of in Win, Linux, mac that edit pdfs. ... > it the problem of disappearance of many words without any reason at all. ...
    (Debian-User)