Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46B2ACF43 for ; Wed, 13 Jun 2012 00:58:53 +0000 (UTC) Received: (qmail 44825 invoked by uid 500); 13 Jun 2012 00:58:52 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 44795 invoked by uid 500); 13 Jun 2012 00:58:52 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 44785 invoked by uid 99); 13 Jun 2012 00:58:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 00:58:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 00:58:43 +0000 Received: by pbbrq2 with SMTP id rq2so1521816pbb.6 for ; Tue, 12 Jun 2012 17:58:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=yMPTHqEFlC5956+ZXwGVztEA4sF8S9f0cAEArkSLrU8=; b=Cn/ePCpJCWliJkfTK0IEOxH7cLCE23pZq63HW/mh5XV4fSlfWmpw4PBSIuBDr6vxkn oEP04LH2m0BADwklxAJ6eGgX/cOvOjRThNc2f2Vs0sOW5RTSZwKQ2tRG++oB7kWbJ9no peJKpUDCY/HEZGo2KnfRjFir4fXxDXAbrD4IBccsfZlv3U6XwtcChY9dTkAFmXSradLC krLp3gm6F2zt2Pz13xamNeupr48cv6zy0IUvMIN6EBCSF8Q8+ItpobyPdbgQlHLWL9Yc 9I9IgCwjuNxZqqCaqGz26fbS3+TcLwpEexaVM9QI53KphelpSZpgfXAPjtcIxQ3nqHb2 PNig== Received: by 10.68.132.166 with SMTP id ov6mr44907860pbb.24.1339549101906; Tue, 12 Jun 2012 17:58:21 -0700 (PDT) Received: from [192.168.0.3] (124-169-4-186.dyn.iinet.net.au. [124.169.4.186]) by mx.google.com with ESMTPS id pq1sm3798793pbb.5.2012.06.12.17.58.19 (version=SSLv3 cipher=OTHER); Tue, 12 Jun 2012 17:58:20 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Asset / i18n resource management improvements From: Justin Mclean In-Reply-To: Date: Wed, 13 Jun 2012 10:58:15 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: flex-dev@incubator.apache.org X-Mailer: Apple Mail (2.1257) X-Gm-Message-State: ALoCoQmJoEpHZQBkjs1UOHnIYtmgWVe7zjWtHtcSDOVKBjTzXHtI/qiOb+A6f7VWTVQO9rsQ3jxs Hi, > Both implementations are inefficient given how often you tend to look = up > strings. You are initializing all of these properties when it isn't = even > clear they will be used. I still think you are better off just = embedding a > delimited text file and parsing it on the fly. But it still needs = proving. The reason why this is not usually done is (in the case or error = messages) at the point of the error you need to know for sure what you = want to display is available and you may have to display it under = limited time or memory constraints. Having everything preloaded even if = you don't use it means you don;t get an "Out of memory" error when = trying to display an "Out of memory" error message :-) . I'm not sure we = need to worry about this in the Flex SDK however and could load when = required. Performance may or may not be an issue when using resources for = languages, but I assume we're talking about only change how the SDK does = it internally for it own error messages? Thinking a little more about the patch file idea and I think a better = idea would be to automatically add a language only locale eg "en", "fr", = "sp" etc to the end of the locale chain. Less stuffing about with build = files and would help anyone working with multiple variants of the same = language and it commonly used. Thanks Justin