Speed: Array lookup vs field lookup

I have particles in my particle simulator referred to by array lookups - would it be faster to 'chain' the particles by including a 'next' field in each particle instance that links to the next particle in the chain, and refer to that field when moving through the particles?

I have particles in my particle simulator referred to
by array lookups - would it be faster to 'chain' the
particles by including a 'next' field in each
particle instance that links to the next particle in
the chain, and refer to that field when moving
through the particles?so basically you're asking whether iterating a linked list is faster than iterating an array. I guess the array will be an unmeasurable amout of time faster since there'll be no additionalmethod call.
If you really want to know, do both and test.

Similar Messages

  • Setting lookup custom field using CSOM

    Hi,
    i am trying to use:
    SetCustomFieldValue()
    to update custom fields. It is working perfectly well for text types. However i can't seem to figure out how to setup the value of lookup custom field type. I got to the point where i check if the value i want to set is in the entries of the lookup table.
    But noway to figure how to set this value.
    thx for any help

    Beautifull !!
    i found out what i need in order to set the lookup field following your link which led to this one (another post):
    http://nearbaseline.com.au/blog/2013/08/updating-lookup-table-values-using-jsom/
    "must pass the entry name value(s) in an Array" it is mentionned nowwhere in MSDN ...

  • Error while deleting a Lookup Taxonomy field

    Hi Experts,
    I have created a main table Products and there is a field Manufacturer which is a Lookup Taxonomy field. When I try to delete the field there comes an error stating 'The field cannot be deleted until references to it in Family Hierarchy are removed'. But in data manager there exists no data for that table. Even in the other mode I have checked whether there exists any relationships. There seems to be nothing, still I can't able to delete that field. Please help!!!
    Thanks in Advance,
    Thamizharasi N

    Hi Thamizharasi,
    I feel you have defined a Family table in your repository. This family table is referring to this taxonomy field. To resolve this, try below steps:
    1. Open MDM Console and login to the repository.
    2. Once connected to the repository, click on the repository name, Search for the "Families" table in the Tables Sub-window on right hand side, and check the family field.
    3. If the family field is manufacturer Lookup taxonomy field, then delete the family table.
    4. Delete the lookup taxonomy field from the main table.
    Hope this will solve your issue. Revert with the result..
    - Shiv

  • Need to create Enterprise field, LookUp Table and PDPs programmatically

    Hi,
    Please suggest how i can create Enterprise field, LookUp Table and PDPs, Workflow Stages, Phases programmatically for Project Server 2013. Any resource / blog link will be really be helpful.
    I searched google but most of them are for PS 2010
    Regards,
    Ankit G

    By Enterprise field i am assuming you mean Custom Field.
    The Google/Bing results for PS 2010 is referring to the PSI model. This model can still be used for Project Server 2013 OnPremise installations, but not for Project Online.
    The question is how do you want to create them/which technology do you want to use. you can program Agains the Project server through the PSI API, the CSOM API, the REST interface, Javascript and VBA code.
    I am gussing you want to create an application that uses C# therefore i will suggest to use the PSI or CSOM API.
    PSI is the old model, but is still supported in PS2013.
    The CSOM is the new model and only Works in PS2013 and comming versions.
    A great reference you should download is the Project Server 2013 SDK:
    http://www.microsoft.com/en-us/download/details.aspx?id=30435
    I am guessing you are new to Project Server programming so i will suggest you go with PSI as it has the most documentation.
    PSI:
    Getting started:
    http://msdn.microsoft.com/en-us/library/office/ff843379(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/ee767707(v=office.15).aspx
    Create Custom field:
    http://msdn.microsoft.com/en-us/library/office/websvccustomfields.customfielddataset.customfieldsdatatable.newcustomfieldsrow_di_pj14mref(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/gg217970.aspx
    Setting custom field values:
    http://blogs.msdn.com/b/brismith/archive/2007/12/06/setting-custom-field-values-using-the-psi.aspx
    http://msdn.microsoft.com/en-US/library/office/microsoft.office.project.server.library.customfield_di_pj14mref
    Lookuptables are the same procedure:
    http://msdn.microsoft.com/en-us/library/office/websvclookuptable_di_pj14mref(v=office.15).aspx
    Workflow phases/stages:
    http://msdn.microsoft.com/en-us/library/office/websvcworkflow_di_pj14mref(v=office.15).aspx
    PDP's:
    PDP's have to be created through the SharePoint interface as Web Part Pages. I havn't tried this.
    I think you want to do this in a backup/restore scenario. In this case you might consider the free tool Playbooks:
    http://technet.microsoft.com/en-us/library/gg128952(v=office.14).aspx

  • Create Lookup[Taxonomy] field for same taxonomy in two main tables

    In MDM 7.1 SP03, 
    1) We have two main tables MTable1 and MTable2 in repository
    2) One Taxonomy table Taxo1
    3) In MTable1, Created a Lookup[Taxonomy] field for Taxo1 table
    4) In MTable2, not able to create Lookup[Taxonomy] field for Taxo1
    table.
    Why is it not allowed to use Lookup[Taxonomy] in multiple main tables?
    Thanks,
    Rajesh
    Edited by: Rajesh Penagalapati on Nov 12, 2009 4:53 AM
    Edited by: Rajesh Penagalapati on Nov 12, 2009 4:54 AM

    Hi,
    Thats a limitation .Multiple Main tables cannnot share  the same Taxonomy table.
    You can refer the features of MDM 7.1 at
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/43/D7AED5058201B4E10000000A11466F/frameset.htm
    Regards
    Nisha

  • Append action to a Lookup Multivalued Field  as Default when Merging ?

    Hello Experts
    I have the following Issue.
    We are using the MDM Data Manager to do some cleansing (Matching Mode of the Data Manager) and we have a Field thas is defined as "Lookup [Flat]" and "Multivalued: Yes".
    The issue is the following. When merging two records we want that the values of the Lookup Multivalued Field are appended  always. To append the values we have to right-click the especific cell and select "append"
    Here is an example:
    BEFORE
    Item A |  Item B
    1;2 | 3;4
    AFTER
    Item A
    1;2;3;4
    So, my question is... Is there any way to set the APPEND action as Default when we double click that cell? Is getting very anyoing and not efficient to always be doing right-click - Append.
    Thank you in Advance
    Sorry if my english isn't very good.
    Mariano.

    Hi Mariano,
    As rightly mentioned by the above posts that,the appending of the values in the merged records cannot be automated.The reason being :
    - The merge functionality itself in MDM under the MDM Data manager is mostly suppose to be a manual process as Merging of master records cannot be done by anyone,not even just by the master data expert.
    - Merging two duplicate master data in to one is a function to be undertaken only under the supervision and permission of a business expert.
    - MDM may identify two similar records as Duplicates as per the set rules and strategy ,but it does not have an inteligence of itself to confirm the same that the two records are duplicates in the real sense or not.
    - Besides sometimes even known duplicates may not be required to be merged but just identified.
    - So in which ever case,the merging will be manual and will require human intervention.
    - Besides MDM Tool does not support this function of automating the appending functionlity.
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Bulk Edit for Metadata Group, Field, Lookup, Responses and Subscriptions

    Hello,
    Has anyone been able to bulk edit custom configurations in FCSrv Administration window (of course not IN administration window, but as it was editing there).
    In other words: Let say that I have a custom configuration of Metadata Groups, Fields, Lookups, Subscriptions and Responses and I want to implement that in lots of FCSrv systems.
    Another situation: I`ll upgrade my hardware and want to re-install FCSrv but I don`t want to loose all my configurations.
    I`ll have to manually input each configuration? It`s possible to update just a file(s)?
    I know that the backup from FCsvr does this, but its used for DB Backup and not Preferences. I do not want to restore or backup the DB.
    Replacing this files (or some of them): com.apple.FinalCutServer.profile.plist and postgresql.conf do the trick?
    Regards

    As is usual with the world of programing the answer turned out to be ridiculously simple! In the Elements.xml file for the button the javascript that launches the dialog with SP.UI.ModalDialog.showModalDialog was always using the top level site to get the
    custom ASPX page. Doh! Adding the _spPageContextInfo.webServerRelativeUrl in front of the path to my custom ASPX page did the trick. None of this was noticeable to me since the code was loading fine in debugger and I could see that it had the correct SPWeb
    because I was passing in the webURL as a parameter in the URL for opening the dialog. But when the ASPX was loaded I just got the labels.
    var url = webUrl + '/_layouts/15/Generic.BulkEdit/BulkEdit.aspx?selectedItems=' + selectedItemIds + '&ListId=' + listId + '&WebURL=' + webUrl;

  • RFC lookup Vs Database lookup

    Dear experts,
    When it comes to PI mappings which one is resource or time intensive between RFC lookup Vs Database lookup where the table is hosted in PI itself.  I really looking for this comparision in PI 7.1.  If anybody looked to compare the pros & cons of using RFC lookup Vs datbase lookup where the table is hosted in PI itself. 
    Thanks,
    -Bharath

    I have no data to prove my allegation, but I would expect JDBC to be slower, because you need a separate driver to make the connection to the database, perform the query. The RFC adapter doesn't need that, plus it already has the connection to the SAP system, so you only need to perform the query.
    Steps for JDBC:
    1. call JDBC driver
    2. logon to DB
    3. perform query
    4. return result
    Steps for RFC:
    1. perform query
    2. return result

  • Sort an array with two fields

    i have an array with three fields: id, name and date.
    i want to sort it by name first and then date.
    the size of my array could be as large as 1 million.
    what could be the most efficient way to do so?
    tia!

    It's very inefficient to sort an array on "the fly".
    In that case at least use a linked list so you don't
    have to move all elements after the insertion point to
    make room for a new insert. But it's much better to
    sort afterwards when all elements are in the array.Use a TreeSet. A linked list will be slower than a TreeSet, I suspect.
    I believe that with a TreeSet, insertions will be somewhat slower (O(logN) vs O(c)), but the subsequent sorting of a linked list will be, what, at least O(NlogN) and possibly O(N^2)? And when you're inserting the first elements into the TreeSet, it should be closer to O(c) anyway, whereas the after-the-fact sorting of a LinkedList wouldn't have an advantage like that.
    Then if necessary extract an array out of the TreeSet when you're done creating/inserting elements.
    But really, use a database.

  • Speed issue when drawing field of Rectangles

    I'm working on a fullscreen java app that consists of a 320x320 field of randomly-colored dots, a variable percentage of which should eventually move in concert at up to 100 fps. Right now I'm simply working on drawing a varying field of dots on the screen at that speed. I'm using multiple buffers with the help of the MultiBufferTest example from Sun's Full Screen Exclusive Mode API tutorial. The demo runs great, pages flipping at what appears to be the speed at which I need my graphics to appear on the screen, but the demo draws only one Rectangle.
    The problem I'm having seems to be the speed at which my 102400 Rectangles are being drawn on one of the back buffers before being flipped onto the screen. Right now I'm working with 3 buffers, but it doesn't seem to matter how many I use; the speed at which the field appears to plateau at around 1 fps. Some thoughts:
    * My random color generation code is outside of the rendering loop.
    * I've casted the Graphics object into a Graphics2D object g2, but that hasn't helped.
    * The Rectangles are drawn inside nested for loops by row (r) and column (c) using g2.fillRect(c * mSide, r * mSide, mSide, mSide); where mSide is the side length of each Rectangle.
    * Is it possible to draw all the frames into a Vector of buffers before the 'animation' begins? Presumably it would still take around 1 second to generate each frame that will appear, so that probably wouldn't work too well.
    * I have the O'Reilly book Java 2D Graphics, but it doesn't help much in this situation.
    I'm a novice at Java and a novice at graphics programming to boot, so is there anyone out there that can give me some advice on how to speed up the graphics generation?

    I'm working on a fullscreen java app that consists of a 320x320 field of randomly-colored dots, a variable percentage of which should eventually move in concert at up to 100 fps. Right now I'm simply working on drawing a varying field of dots on the screen at that speed. I'm using multiple buffers with the help of the MultiBufferTest example from Sun's Full Screen Exclusive Mode API tutorial. The demo runs great, pages flipping at what appears to be the speed at which I need my graphics to appear on the screen, but the demo draws only one Rectangle.
    The problem I'm having seems to be the speed at which my 102400 Rectangles are being drawn on one of the back buffers before being flipped onto the screen. Right now I'm working with 3 buffers, but it doesn't seem to matter how many I use; the speed at which the field appears to plateau at around 1 fps. Some thoughts:
    * My random color generation code is outside of the rendering loop.
    * I've casted the Graphics object into a Graphics2D object g2, but that hasn't helped.
    * The Rectangles are drawn inside nested for loops by row (r) and column (c) using g2.fillRect(c * mSide, r * mSide, mSide, mSide); where mSide is the side length of each Rectangle.
    * Is it possible to draw all the frames into a Vector of buffers before the 'animation' begins? Presumably it would still take around 1 second to generate each frame that will appear, so that probably wouldn't work too well.
    * I have the O'Reilly book Java 2D Graphics, but it doesn't help much in this situation.
    I'm a novice at Java and a novice at graphics programming to boot, so is there anyone out there that can give me some advice on how to speed up the graphics generation?

  • Sorting of Items in LookUp Flat field

    Hi all,
    I have a Flat table "Numbers" with values from 1 to 20. This is made as a Lookup field in the main table. When i see the ordering of these values in the lookup field, it shows "1,10,11,12,13,14,15,16,17,18,19,2,20,3,4,5,6,7,8 and 9" which i believe is String sorting. Whereas this field being an Integer, should be displayed as "1,2,3 and so on..."
    Is there anyway to acheive this kind of a sorting?
    Thanks
    SwarnaDeepika

    Does this appear when you look in look up via main table or are you seeing the lookup table only? Either way I hope sort index is normal for this numeric field and make sort index to none for other fields.
    Check what other fields you have in look up and what are their sort indexes

  • Qulified lookup table field can be viewed at Maintable.

    We have 2 non qualifiers in Qualified lookup table and the field type are lookup flat, If i change the data in this fields, i can able to see the change tracking history at main table level.
    Thanks
    NK

    Hi Krish,
    Thats how change tracker in MDM works...
    regards
    Sowseel

  • OIM user-defined field lookup

    Hi,
    I've installed OIM connected to OID.
    Now if I want to create a new user-defined (in user creation profile)field say... Job-Band (and populate the drop down for Job-Band with values A,B,C,D... etc.) ,what steps do i need to follow.
    Edited by: Chhavi Saluja on Feb 7, 2010 10:29 PM

    Hi,
    if i understand your question correctly,you want to create a new UDF(user defined field) i the user profile for this you need to cretae a udf from the design console, in your case you need to select the users in the form name as you want to add a field in the profile,.
    Select Lookup in the field type after that click on the Properties there you need to attach the lookup corresponding to this in the Lookup code, for this you need to create a lookup with your values that you want show values. Over here you attach this.
    Hope this helps you
    Regards
    VM

  • Extracting MS Project Custom Field Lookup "Description" data

    I'm using MS Project 2010 Professional and
    I have created a Custom Field which is called "Responsible Person" which is linked to Text2 field
    On it Under Custom Attributes> Lookup I have  Under "Value" column ---->Responsible Person Names and Under "Description" Column ----> I have entered email addresses for each person.
    For each project tasks , under Text2 I have selected from the dropdown the Responsible person Name ( which is the Value Column)
    My Question is there a way to read using VBA, the Lookup "Description" column data which i have entered as email address.
    If some one have done it in MS Project 2010 using VBA please guide me how to do this.
    Thanks a lot.

    Hi,
    I have never done before for a text field. But the following works for OutlineCodes, I renamed OutlineCode2 a "xx". Perhaps you can also use an Outlinecode? Or can use this a basis to get it work with text fields.
    Sub ReadDescription()
    Dim oc As OutlineCode
    Dim lt As LookupTable
    Dim lte As LookupTableEntry
    Dim tsk As Task
    Set oc = ActiveProject.OutlineCodes("xx")
    Set lt = oc.LookupTable
    For Each tsk In ActiveProject.Tasks
    If Not tsk Is Nothing Then
    For i = 1 To lt.Count
    Set lte = lt.Item(i)
    If lte.Name = tsk.GetField(Application.FieldNameToFieldConstant("xx", pjTask)) Then
    tsk.Text30 = lte.Description
    End If
    Next
    End If
    Next
    End Sub
    Hope that helps!
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • PSI Bulk Project update on Custom Field lookup tables.

    Using PSI Is it possible to update project custom filed which has a lookup table. I tried but it throws the following exception
    An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
    Additional information: ProjectServerError(s) LastError=CICOCheckedOutInOtherSession Instructions: Pass this into PSClientError constructor to access all error information
    Any Idea on this.
    VIKRAM

    Hello,
    If you are trying to update the lookup table values, see this PowerShell example:
    https://gallery.technet.microsoft.com/Update-Server-Lookup-table-bb1ae14f
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

Maybe you are looking for

  • SQL- Getting Subtotal From a Query

    Hi, I need to run a query where I can get a subtotal for each items in a table.  The query should produce something like: 3 apple 4 grape 1 orange I did a SUM and COUNT function but, I get the total records (8) in the table instead of the subtotals.

  • Unit conversion (days to hours)

    Hello, I have got a question concerning unit conversion in integrated planning. I created a key figure called "workload" and asigned the UnitInfoObject "0unit". Two input-ready queries are available in order to plan the workload in two different unit

  • Formula or solution to get the range between numbers in on column (KF)

    Hello All, I am in need of a solution (formula) to get the range of numbers in one column of query results. I have a variable number of sales orders and three keyfigures that show the number of days between when the order was received and when the cu

  • Issue: Handling unit creation

    Hi, While creating u2018Handling Unitsu2019 in transaction MFPP1 system creates it successfully in back groung BUT while trying u2018Onlineu2019 it ask for u2018Packing Instructionu2019, after giving input of same u2018Packing Instructionu2019 (Which

  • How to get App Store back once it was deleted

    Hi there, I deleted the App Store application with App Cleaner because I was thinking I don't need it. It is also deleted in the trash. Without App Store I cannot download the OS X Lion, and even if I would search in former updates to find the App St