=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= SEARCHDOMINO.COM | Developer Tip October 1, 2001
Essential tips, tools, and code for the Domino/Notes developer. View More Tips at: http://searchdomino.com/tips/0,289484,sid4_tax283833,00.html EDITORS NOTE: Due to some technical issues with our on-line tips, our email tip links did not function properly this morning. Here is the tip in full along with the links. We apologize for any inconvenience. -- Joyce Chutchian, Site Editor, searchDomino.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= IN THIS ISSUE | Table of Contents 1. DEVELOPER TIPS - Feature Developer Tip: Optimizing Your Code - Recently Posted Developer Tips 2. IMPORTANT ANNOUNCEMENTS AND LINKS - Know-IT-All Quiz: Question #1 - Win a set of Motorola TalkAbout Radios - Web Site for Sept. 11 Survivors ___________________________________________________________________ ****************** SPONSORED BY: SWING Software ****************** Integrate your applications with Microsoft Office using new SWING Integrator v2.1. Create, save, edit Office documents as attachments; field exchange, mail-merge, labels, templates... Now there's no easier way. No DLLs -- no end-user licenses -- unlimited distribution (ROYALTY-FREE)! Learn what hundreds of developers and thousands of end-users already know. http://www.swingsoftware.com/searchdomino.htm ____________________________________________________________________ ******************************************************************** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= OPTIMIZING YOUR CODE | by Nahum Preshizky Have you had a client say, "Who needs Lotus, it's sooooo sloooow, maybe we should change to another program?" I did. Then, I started to check why the client thought it was so slow. What I found out was amazing. It took them 30-40 seconds to enter forms, and more than couple of minutes to print documents - and thought that maybe the document was too big - but its size was around 50-60Kb. Imagine the speed of it. So, I started to check what was taking so much time. Every field that has LotusScript - even one letter takes an additional 2K in version 4.6 and 2.5K in version 5. So, if you had some text in LotusScript in a field and just marked it as comment - it takes that much space anyway. So, when checking around, I saw the next thing - form & subform working in this project took together 1.8 Mb. So, basically, every time a user needed to work with forms - 1.8 Mb + 50-60Kb got passed online. (users had remote drives on central machine). CODE: Every field that has LotusScript has 2 additional fields in the design document: FieldName - describes field itself $$FieldName - LotusScript Component of field. $FieldName_0 - Compiled LotusScript of field. What do they take? $$FieldName - at least 562 bytes in version 4.5, going to 768 bytes in version 5 + actual size of your code. $FieldName_O - at least 1.5 K in v4.6, going up to 2.2K in version 5 + actual size of your compiled script. What I found out - and we had hundreds of fields in the form+subform combination, that couple of techniques pay off really good. 1. Delete all unnecessary code from your LotusScript. It will give you an automatic boost of 2K*number of fields, at least. 2. If you have same function in couple of fields - put it in Globals, and call to it. Search the ways to put 2 functions together, even maybe with more parameters, and put them in the same function if you can. Cut all code from fields - put only an functional call. 3. Check using form parameters to see what fields it still uses that have $FieldName_O type - you will be able to see all fields that still have remnants of LotusScript code - try to recreate them. 4. Change whenever you can from LotusScript to @Formula. It will give you some boost. 5. If you have fields that some users should be able to edit and some not - use hide-when and create computed text in next paragraph - this method works great in tables, and makes forms much shorter. 6. Create another version of the form for printing - and cut all fields from it using method that you can get from me - [EMAIL PROTECTED] - I will gladly send you code for it that will not make you need to work on 2 versions, but will allow you to do so much easier. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= RECENTLY POSTED DEVELOPER TIPS Domino Category: http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283837_alpD_idx0,00.html [1] Non-JavaScript rollover buttons [2] Extended directory as a mobile directory JavaScript Category: http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283840_alpD_idx0,00.html [1] Using the "Allow selection of documents" (R. 5.0.5) >>See all searchDomino Developer Tips here: http://searchdomino.techtarget.com/tips/0,289484,sid4_tax283833,00.html =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ____________________________________________________________________ :::::::::: DON'T MISS THESE IMPORTANT MESSAGES AND LINKS ::::::::: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= KNOW-IT-ALL QUESTION OF THE DAY | Web Services Question #1 Quiz yourself to see how much you know about Lotus' Web Services Web services are: a) A compilation of companies that create Web pages b) A set of component-sharing standards for applications to talk to one another c) A Web-enabled automated email creation and response system d) Web-hosting and storage offered by a 3rd-party ASPs >>Click here to test your knowledge: http://www.searchDomino.com/originalContent/0,289142,sid4_gci772971,00.html =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= WIN A SET OF MOTOROLA TALKABOUT RADIOS! | Submit your Tip Do you have a helpful tip for Lotus Notes developers? Become eligible to win a pair of Motorola TalkAbout radios by submitting an original developer tip and entering our tips contest. Please send your own, non-previously published tips. Submit your tip here: http://searchdomino.techtarget.com/tipsPrize/0,289492,sid4_prz764172_cts764173,00.html =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= WEB SITE FOR SEPT. 11 SURVIVORS | Chuck Connell This Web site by Chuck Connell, a searchDomino.com expert, is intended to help families and friends of victims of the September 11 terrorist attack. http://www.Sept11Survivors.org ____________________________________________________________________ :::::::::::::::::::: SEARCHDOMINO CONTACTS :::::::::::::::::::::: JOYCE CHUTCHIAN, Site Editor ([EMAIL PROTECTED]) >> Send your original articles, comments, and suggestions. ____________________________________________________________________ KARA GATTINE, Assistant Editor ([EMAIL PROTECTED]) >> Send your white papers and Best Web Links. ____________________________________________________________________ KRISSI DANIELSSON, Assistant Editor ([EMAIL PROTECTED]) >> Send your technical tips and Ask the Expert questions. ____________________________________________________________________ JON PANKER, News Director ([EMAIL PROTECTED]) >> Send in your news, product announcements and poll ideas. ____________________________________________________________________ GABRIELLE DERUSSY ([EMAIL PROTECTED]) >> Sponsor this or any other TechTarget newsletter. ____________________________________________________________________ ___________________________________________________________________ :::::::::::::::::::: ABOUT THIS NEWSLETTER ::::::::::::::::::::: Created by TechTarget (http://www.techtarget.com) TechTarget - The Most Targeted IT Media Copyright 2001, All Rights Reserved. If you no longer wish to receive this newsletter simply reply to this message with "REMOVE" in the subject line. Or, visit http://searchDomino.techtarget.com/register and adjust your subscriptions accordingly. If you choose to unsubscribe using our automated processing, you must send the "REMOVE" request from the email account to which this newsletter was delivered. Please allow 24 hours for your "REMOVE" request to be processed.
