Efficiency Question

Which is more efficient: TOTEXT (field1, "MM/dd/yyyy") or use the Date tab in Format editor?  Or is it just developer's preferences?  Thanks.

Date tab is more efficient because now crystal doesn't have to process a formula.  By using the date tab, crystal is doing nothing more than changing how it is dispalyed instead of translating the data.

Similar Messages

  • Efficiency Question - Cutting Clips

    Efficiency Question - Cutting Clips.
    So I was wondering if there is a better way to cut my clips that I am not using. Basically I often have large long clips of raw footage that I cut down to the usable segments. Each raw file may be over an hour long and have 100s of small segments of live commentary, often I find I am cutting out slightly to long pauses in the talking and other stuff before I have a clip ready to send to the main edit.
    Anyway, often I am zoomed will in so I can edit, and I press C, make a cut.. then make another a bit further up, press V, click on the segment I just cut out.. press delete and then click on and move the rest of the raw clip to the left to bump up where I made the first cut, often needing to zoom well out and then back in again to continue editing.
    Is there a better way to do this? So I do not need to zoom in and out all the time... is there a way to delete a chunk of video form the sequence and have the clip automatically "close the gap" for me?
    --Thanks

    I would take the Source Clip into the Source Monitor.
    Mark an In Point  ("I")  where the good content starts...and an Out Point ("O")  where the good content stops.
    Hit "," to Insert it to the Sequence.
    Back to Source Monitor and repeat for the next section of good content in the same Source Clip..
    No gaps . Done
    Then ..if necessary...I would play thru  the Sequence and do Trim Edits at the editpoints.
    Many different ways to "skin the cat" at Trim stage.
    Alternatively in the first part:
    I would take the Source Clip into the Source Monitor.
    Mark an In Point ("I") where the good content starts...and an Out Point ("O") where the good content stops.
    CTRL-Drag to the Program Monitor.

  • Efficiency Question: Simple Java DC vs Used WD Component

    Hello guys,
    The scenario is - I want to call a function that returns a FileInputStream object so I can process it on my WD view. I can think of two approaches - one is to simply write a simple Java DC that does so and just use it as a used DC so I can call the functionality from there. Or create another WD DC that exposes the value (as binary) via component interface.
    I'm leaning on the simple Java DC approach - its easier to create. But I'm just curious on what would be the Pro-side (if there's any) if I use the WD Component interface approach? Is there a plus for the efficiency? (Though I doubt) Or is it just a 'best/recommended practice' approach?
    Thanks!
    Regards,
    Jan

    Hi Jan
    >one is to simply write a simple Java DC that does so and just use it as a used DC so I can call the functionality from there
    Implemented Java  API for the purpose mentioned in your question is the right way, I think. The Java API can be even located in the same WebDynpro DC as your WebDynpro components. There is not strongly necessity to put it into separate Java DC.
    >Or create another WD DC that exposes the value (as binary) via component interface
    You should not do this because in general WD components' purpose is UI, not API. Implementing WD component without any UI, but with some component interface has very-very restricted use cases. Such WD component shall only be a choice in the cases when the API is WebDynpro based and if you have to strongly use WebDynpro Runtime API in order to implement your own API.
    If your API does not require WebDynpro Runtime API invocations or anything else related to WebDynpro then your choice is simple Java API.
    >But I'm just curious on what would be the Pro-side (if there's any) if I use the WD Component interface approach? Is there a plus for the efficiency?
    No. Performance will be better in simple Java API then in WebDynpro component interface. The reason is the API will not pass thought heavy WebDynpro engine.
    BR, Siarhei

  • Noobish "efficiency" question on DataOutputStream

    So, I currently have this:
    byte[] buf = some_bytes;
    DataOutputStream out = new DataOutputStream(socket.getOutputStream());
    out.writeInt(buf.length);
    out.write(buf);I've always thought that calling write(byte[]) and any given OutputStream will be "efficient", in that things will be chunked under the hood to avoid incurring whatever I/O overhead is present for each and every byte. So, as I understand it, we only need to explicitly use BufferedOutputStream if we're writing one or a few bytes at a time.
    Now I'm not so sure.
    Digging through the core API source code a bit, it seems that this ultimately calls OutputStream.write(byte) in a loop, which, presumably, is bad unless the OutputStream in question is a Buffered one.
    Am I shooting myself in the foot here? Should I be wrapping that DataOuputStream around a BufferedOutputStream? Or vice versa?
    Or should I just scrap the DataOuputStream altogether and write the int's bytes out myself?
    I'm going to test it both ways, but in the meantime, and just in case the tests are not definitive, I'm wondering if anybody here can tell me what I should expect to see.
    I think I've been staring at this stuff for a bit too long and am second-guessing myself to death here no matter which way I look at it. So thanks in advance for any nudge you can give me back toward sanity.
    Edited by: jverd on Feb 16, 2012 3:59 PM

    EJP wrote:
    So, what's the point of the basic OutputStream not being buffered then?I guess the idea was that if you want buffering you say so,Ok.
    I think you'll find that every significant class that extends OutputStream (specifically FileOutputStream and SocketOutputStream) overrides write(byte[], int, int) to do an atomic write to the OS, so it isn't really such an issue except in the case of DataOutputStream (and not ObjectOutputStream, see above).Okay, so, in this case, I've got a DataOutputStream wrapped around a SocketOutputStream. It's not an issue for SOS, but it is for the wrapping DOS. Yes?
    So to overcome the DOS doing a bunch of piddly 1-byte writes to the SOS, which in turn could result in a bunch of piddly 1-byte writes to the network, which I don't want, I inject a BOS between them. Yes?
    Thanks for the help. I can't believe after all these years I never got these details sorted out. I guess it never came up quite this way before.

  • Hash Table efficiency question

    Hi experts,
    In my program, I want to read in a lot of string and store the occurance of each string. I found that hash table is the best and most efficient option, but the problem is that, hash table only store one item.
    So, I either have to:
    1) store an array object into each hash table entries. ie String[String][Occurance]
    2) create two hash table based on the hash code of the string.
    For 2) I am planning to store all distinct String into one hashtable using the string as the hashcode, then create another hashtable to store the occurance using the String as the hashcode.
    My question is that:
    1)which implementation is more efficient? Constantly creating String array for each entry or create two hashtables?
    2) Is the second implementation possible? Would the hashcode be mapped to different cell in the hashtable even the two hashtable are using the same hashcode and the same size?
    Thank you very much for your help.
    Kevin

    I am wondering what it is you are trying to do, but I am assuming you are trying to find the number of occurrences for a particular word, and then determining which word has the highest value or the lowest value? You can retrieve the initial String value by using the keys() method of the hashtable. You can use it to traverse the entire table and compare the counts there.
    If you really wanna store another reference for that string, create a simple object
    public final class WordCount {
       * The Word being counted.
       * @since 1.1
      private String _word;
       * Count for the Number of Words.
       * @since 1.1
      private int _count;
       * Creates a new instance of the Word Count Object.
       * @param word The Word being counted.
       * @since 1.1
      public WordCount(final String word) {
        super();
        _word = word;
        _count = 0;
       * Call this method to increment the Count for the Word.
       * @since 1.1
      public void increment() {
        _count++;
       * Retrieves the word being counted.
       * @return Word being counted.
       * @since 1.1
      public String getWord() {
        return _word;
       * Return the Count for the Word.
       * @return Non-negative count for the Word.
       * @since 1.1
      public int getCount() {
        return _count;
    }Then your method can be as follows
    * Counts the Number of Occurrences of Words within the String
    * @param someString The String to be counted for
    * @param pattern Pattern to be used to split the String
    * @since 1.1
    public static final WordCount[] countWords(final String someString, final String pattern) {
      StringTokenizer st = new StringTokenizer(someString, pattern);
      HashMap wordCountMap = new HashMap();
      while (st.hasMoreTokens()) {
        String token = st.nextToken();
        if (wordCountMap.containsKey(token)) {
          ((WordCount) wordCountMap.get(token)).increment();
        } else {
          WordCount count = new WordCount(token);
          count.increment();
          wordCountMap.put(token, count);
      Collection values = wordCountMap.values();
      return (WordCount[]) values.toArray(new WordCount[values.size()]);
    }Now you can create your own comparator classes to sort the entire array of Word Count Objects. I hope that helps
    Regards
    Jega

  • ABAP efficiency question

    Hi
    I have an internal table of the type STRING which may contain thousands of records and I am trying to get to lines which starts with a set of characters. There may be a few lines starting with that sequence and it is possible to do what I have shown below, however, is there a more efficient way to do this?
    Ideally what I would like to do is to find the lines or the index (SY-TABIX) using LOOP AT.......WHERE....My current way of doing it is not the best. Any ideas?
    DATA t_spooltext TYPE TABLE OF string. "contains thousands of lines
    DATA l_text(200) TYPE c.
    DATA l_index     TYPE i.
    LOOP AT t_spooltext INTO DATA(l_current_line).
      CONDENSE l_current_line.
      l_text = l_current_line.
      IF l_text+0(5) EQ 'H046A'.
        l_index = sy-tabix.
        ELSE
            CONTINUE.
      ENDIF.
    ENDLOOP.

    Sharath,
    Fixing what you posted, I add the sample code below:
       REPORT  z_test.
    DATA: t_spooltext TYPE TABLE OF string,
          results_tab TYPE TABLE OF match_result.
    DO 10 TIMES.
      APPEND 'H046A' TO t_spooltext.
    ENDDO.
    DO 3 TIMES.
      APPEND 'H046B' TO t_spooltext.
    ENDDO.
    FIND ALL OCCURRENCES OF 'H046A'
    IN TABLE t_spooltext
    IN CHARACTER MODE
    RESULTS results_tab.
    BREAK-POINT.
    Archana, in my point of view the user Sharath are correctly, only thing you have to watch is the form that is set to result table, as I showed above

  • Catalog efficiency question in Lightroom 3.6

    I currently have one catalog with over 22,000 photos and numerous collections in it. I recently heard about creating separate "catalogs" to better LR3's efficiency and to cut down the clutter so that I'm just working on one catalog at a time. Does anyone know the best way to go about this so as not to ruin all of my collections I have created over the past year?

    Don't do it is the answer. For most uses one catalog is the best solution.

  • Small efficiency question

    Does using braces for containing if's and for's etc affect the efficiency or size of compiled binary code?
    e.g.
    Does this make a difference:
    for( int i=0; i<N; i++ ) {
    b += f;
    As opposed to:
    for( int i=0; i<N; i++ )
    b += f;

    Actually you will get a speed increase by a factor of
    10 to 15 if you manage to write your application on
    only one line.
    :)Example 1:
    public class Test {
      public static void main(String[] args) {
        System.out.println("WTF?");
    }vs Example 2:
    public class Test{public static void main(String[] args){System.out.println("WTF?");}}So far my performance tests have proved inconclusive, but I'll be sure to write all my code like example 2 from now on : )

  • Program efficiency question

    Hello all, I was just wondering about the efficiency of some programming practices. I have a program I am working on with about 20 different files. One of the files contains all of my constants ("Constants.java")... I am wondering if it is a bad practice to just call all of the variables statically i.e.
    System.out.println(Constants.menu);
    or would it be more efficient for the classes that use Constants to implement Constants?? I believe in that case I would be able to just use:
    System.out.println(menu);
    As of right now I am using the 1st method, but I wasn't anticipating the growth of the program to be so large. Any input on this subject would be greatly appreciated. Thanks,
    dub

    or would it be more efficient for the classes that
    use Constants to implement Constants?? No.
    Using interfaces for constants is an antipattern.
    Don't dwell on these micro "efficiency" issues. Write code that's simple and easy to understand. Worry about performance in broader terms--e.g., prefer an O(N) operation to an O(N^2) one. Only diddle with those minutuae if you've determined that they're actually causing problems and the change you make will create a significant improvement.

  • DataGrid sort efficiency questions

    Hi,
    I guess I have two specific questions:
    1. Is sorting a DataGrid faster/slower/same by applying a
    sortCompareFunction to a specific column vs. applying a Sort object
    directly to the underlying dataprovider?
    2. It says in the following link that if you use a
    labelFunction on a column, you must also use a sortCompareFunction:
    dataGridColumn.sortCompareFunction
    ASDOC
    Is this really true - anyone know why?
    Thanks!
    -Noah

    Alexander,
    In Flex 3 sorting is controlled by the collections rather than the controls. This provides greater flexibility overall despite making it hard to adjust to. To get or set a sort on the DataGrid in Flex 3, use the sort property of its dataProvider:
    ListCollectionView(dataGrid.dataProvider).sort
    You can both read and write to the sort property. When you write to it, you have to call refresh() after for it to apply. Refer to the documentation on the ListCollectionView class for how to properly get and set its sort property.
    Thanks,
    Philip

  • New user Union efficiency question.

    I have feeling I read this some where but can no longer seem to find any information on the following:
    Which is more efficent to the following with Physical tables A and B
    SELECT * FROM (A union B) WHERE ID < 97 AND ID > 103
    or
    SELECT * FROM A WHERE ID < 97 AND ID > 103 UNION SELECT * FROM B WHERE ID < 97 AND ID > 103.
    And more to the point how would I test / profile this ?
    Thanks
    Mark

    Silly me it was a threoretical question in as much as the code I'm trying to maintain is a little more complex and the records in both tables whilst being the same do not have contiguous ID values.
    I found an article on materialized views at http://www.akadia.com/services/ora_materialized_views.html and used set autotrace on and timing on and found that after creating two copies of the same table both gave the same performance. ( with corrected Id values of course ;-))
    Thanks ever so much and Regards
    Mark.

  • ConcurrentHashMap.putIfAbsent efficiency question

    Hi,
    I have a question for the putIfAbsent method of ConcurrentHashMap. according to API, this is atomic. so just consider the following two segments of code:
    ConcurrentHashMap<Key, Value> map;
    ReentrantLock lock;
    1.
    Object obj = new Object();
    Object oldObj = map.putIfAbsent(key, obj);
    if(oldObj!=null) obj = oldObj;
    2.
    lock.lock();
    try{
    Object obj = map.get(key);
    if(obj==null){
    obj = new Object();
    map.put(key, obj);
    } finally {
    lock.unlock();
    I am new to the concurrent package and thus don't know the performance issues. For approach 1 I think the potential problem is Object creation everytime no matter the Object exists in the map or not. Would anyone tell me which will have better performance when the map contains lots of objects and the map insert rate is very high?
    Thanks,
    Benny

    Using Locks is hard and errorprone, use ConcurrentHashMap and other collections since inventing your own locking mechnism would be difficult.
    If you manage to implement your own fast locking mechnism for hashmaps you want to publish it in a Academic Paper so others can implement it too. Like that ConcurrentLinkedQueue that is based on a paper from 1996 http://www.cs.rochester.edu/u/michael/PODC96.html.

  • How do I request help for an Acrobat search efficiency question?

    I have had a search time degradation of 60x-70x when I switch to Acrobat X or XI (went from 14 seconds on v9.5 to 841 seconds with X or 991 seconds seconds with XI).  I am trying to find out where I can ask about this to see what I can do to improve the speed of my searches.
    Is this forum a good place to ask?  My prior posting was at:
       http://forums.adobe.com/message/5338121#5338121
    Thanks.

    The PDF files I search are fairly large.  I was told they are "text under image".  They represent the pages of an organization's bimonthly journal over the course of 80 years.  There are 16 files, averaging about 800 pages per file -- totalling around 600MB.  The ability to search across all those pages in 14 seconds rather than 1000 seconds is greatly desired.
    What kind of additional information would be appropriate and helpful?  Should I repost the details I had included under the other forum?  Are there other tests I should try?
    Am I the only one who has had this kind of issue?  I searched to find similar discussions or articles but had found none.
    Is this the appropriate forum in which to follow up as a discussion?
    BTW --  Best regards, and thanks for your feedback.

  • DNS Server Infrastructure Design

    Good day IT Folks,
    Currently I'm on the planning stage of designing DNS infrastructure of our company. I've read a lot of reading materials available online about DNS. According to what I've gathered, two (2) DNS server is the minimum and three (3) is the recommended for the
    usual set up of DNS. What I want to my DNS infrastructure is to have two (2) DNS servers for my LAN (internal network) and one (1) DNS for my LAN-to-Internet connection (external network).
    The two (2) DNS servers will resolve LAN request and will forward requests to the another one (1) DNS server if internet-related sites is requested. I would like to ask for your help to give me insights how am I going to do this, where to start and what
    are the things I should consider.
    Thanks.
    akosijesyang - the conqueror

    You could go with a secure design such as the following (click on it to open a larger image in a new page):
    See if the following threads help:
    Technet Thread: Problem with Windows 2008 R2 Dns Server getting SERVFAIL resolving one domain, 1/18/2012
    Includes a secure DNS forwarder in the DMZ image
    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/b00fc041-ba44-45b6-a8a1-a00374a20edf
    Technet Thread: DNS Structure to rebuild efficiently - Question about the resolution process, 10/27/2011
    Includes a secure DNS forwarder in the DMZ image
    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/3a5fb6ac-6ab7-45b1-abab-e0d928a7e06c
    Good discussion on DMZ secured resolver design, and the use of "Unbound DNS Resolver (http://unbound.net/) to use on your DMZ DNS server instead of Windows DNS. (Note: IMHO, for AD, I would rather use Windows DNS. - Ace)
    Technet Thread: W2003 DNS cache snooping vulnerability for PCI-DSS compliance, 10/10/2011
    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/67e9189b-606a-40d2-9944-8b4c7d084017/
    And dealing with internal and external names:
    Can't Access Website with Same Name (Split Zone or no Split Brain)
    Published by Ace Fekay, MCT, MVP DS on Sep 4, 2009 at 12:11 AM  1278  0
    Note - In an AD same name as the external name (split zone) scenario, if you don't want to use WWW in front of URL, such as to access it by
    http://domain.com, then scroll down to "So you don't want to use WWW in front of the domain name"
    http://msmvps.com/blogs/acefekay/archive/2009/09/04/split-zone-or-no-split-zone-can-t-access-internal-website-with-external-
    name.aspx
    Ace Fekay
    MVP, MCT, MCITP/EA, MCTS Windows 2008/R2 & Exchange 2007, Exchange 2010 EA, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Technical Blogs & Videos: http://www.delawarecountycomputerconsulting.com/
    This post is provided AS-IS with no warranties or guarantees and confers no rights.

  • BI Modeling Question - Load time, efficiency

    Hi Experts,
    This is a two-part question.
    Scenario:
    I have a Standard DSO- overwrite (DSO1) at accounting line item level which pushes data to another Standard DSO-overwrite (DSO2)  at  Monthly Level. This Monthly DSO pushes data to a cube for Monthly Open/ Cleared accounting document snapshot.
    Which means, if I have an Open item today, my cube should have that in the past month, this month and all previous month snapshots as an open item.
    1. Can I do the following with standard 0FI_AR_4 deltas?
    When loading data from DSO1 to DSO2 for the first time INIT load, I replicate all records that are open today and put them in ALL previous months as snapshots. From then onwards, I just build a month's snapshot at a time by pushing all deltas as Summing Before and After Image for a record that has changed. And also, pushing all previous records from Changelog that have a record mode status N.
    I am just talking conceptually here and dont know of the feasibility of accomplishing the above in ABAP.
    2. We could just do a full load everyday replicating Open records less than the current date into all previous months' snapshots.
    For both the above possible solutions, which one is the most feasible?
    Am I missing out a totally different and more practical/efficient solution?
    All inputs greatly appreciated!

    In addition to the above post,
    Please add to, correct or modify my pseudo logic below
    When I go from DSO1 to Monthly DSO2, in the transformation, I write ABAP, where in I compare the Posting period with the current date and if less, I replicate the record to fall into all of the past 11 months (snapshot). This was for the first INIT load.
    From the next load onwards (delta), we build snapshot for only the past two months, so in the Transformation, we write ABAP that looks into Changelog and updates all ' N ' images for the past two months. In addition, we also update the delta records to sum the before and after images for each period.
    Is this logic correct? would it be too much to look up changelog everytime a delta happens??

Maybe you are looking for

  • Is it possible to change the settings in AR Properties Advanced tab with Adobe Acrobat XI?

    I noticed when I went to print a PDF double sided, that despite the following the guidelines from Adobe on this process, it still printed single sided.  I checked the properties of the PDF itself and on the Advanced tab, the DuplexMode was set to Sim

  • Oracle BI Answers and ODBC

    Hi, I just want to know where we define ODBC connection name in Oracle BI Answers so the query pick the data from database. I have created OBDC successfully but dont know where to define in BI Answers... Regards

  • Need some assist - Load button for file retrieval

    Hi All I am trying to retrieval a simple text file to memory but some how I can only load the first item to memory. I am a beginner, hope some one can guide me Thanks       * This method initializes jButton3       * @return javax.swing.JButton      p

  • Facing problem with layout editor in screen painter .

    Hi gurus, I have installed IDES ECC 6.0 in my home system. Now when I go to layout editor in screen painter, I am getting rows in the screen. As per my knowledge there is an installation problem ..How to rectify that ? Could any one please tell me. T

  • Multi instance on same server

    This is my first experience trying to load and set up Oracle from the dba point of view and I need some guidance. I have started having problems when loading 9i on the same server as the 8.1.7 instance. It wanted to overwrite files and was using the