Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3981468
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:24:49+00:00 2026-05-20T05:24:49+00:00

I’m building a UI framework for a mobile application and I have a question

  • 0

I’m building a UI framework for a mobile application and I have a question about managing UI graphics.

Right now I’m storing all the graphics as embedded resources. But the GUI part of the project is seperated into 3 different Projects and NameSpaces, each containing graphics as embedded resources. One of the Projects is a base type and doesn’t know about the other two, and the other two Projects need resources from their NameSpace and Assembly and from the third (base) Namespace and Assembly

What I have been doing is when a resource is requested via the file name, I go through each of the three project’s Assembly object’s list of GetManifestResourceNames, sort them, then search for the first string that contains the file name. I’m noticing that for each graphic it is taking 11-14 ms just to get this string! When all is said and done, I’m looking at 60-100 ms just in resource name lookup

I know there must be a better way to dynamically find a resource across projects and namespaces using only the file name. Any help with this would be excellent!

Also, having the resources be embedded isn’t a constraint. If there is a better solution that doesn’t involve ER, that’d be great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:24:50+00:00Added an answer on May 20, 2026 at 5:24 am

    60-100ms isn’t bad as a one-off operation, so you could create your own cache class which gets this out of the way early on during app execution – it could use a Dictionary object so you get very fast lookup times from that point on.

    If you don’t have the list in advance, you could fall back on a ‘lazy-loaded’ cache, i.e. the value is looked up the first time it’s requested, then stored for future accesses.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.